Try with a self-inflicted left join on the field price.
select a.item,b.item,price
from table a
left join table b on a.price=b.price
and a.item!=b.item
You should have:
a.Item b.Item Price
---
Item 125
Item 2 Item 6 33
Item 3
You can try this:
set @index = 0;
select @index:=@index+1 'index', myfield from mytable limit 100
Danilo
Happy MySQL user
-Messaggio originale-
Da: Fam. Tarniceru [mailto:[EMAIL PROTECTED]]
Inviato: giovedì 12 settembre 2002 11.59
A: MySQL Mailing List
Oggetto: Indexing Column for a
You have downoladed the source zip file, and so you have to compile it
or
download the binary version.
Danilo
-Messaggio originale-
Da: Robert Barbaro [mailto:[EMAIL PROTECTED]]
Inviato: venerdì 12 luglio 2002 11.52
A: [EMAIL PROTECTED]
Oggetto: installing
I have unzipped mysql-3.23.5
Hi,
try this:
"create table mytable select max(id),space(1) name from mytable2"
and then this:
"alter table mytable modify name varchar(255)"
Danilo Maurizio
-Messaggio originale-
Da: Ilyas Keser [mailto:[EMAIL PROTECTED]]
Inviato: martedì 27 agosto 2002 15.56