MySQL Forums
Forum List  »  Newbie

Re: strange query
Posted by: Ramalingam Chelliah
Date: August 26, 2004 04:37AM

Hi ,
Thanks for you question . I got to know about SOUNDEX ...

How about this one ...

Table1
ID Color
1 white
2 orange
3 blue
4 brown
5 green
6 black
7 yellow
8 pink
9 ... ect

Suppose if you want to get '5' for 'grreen'

mysql>select ID
from Table1
where Color='grreen' OR SOUNDEX(Color)=SOUNDEX('grreen');


(Use a variable instead of 'grreen' )

Hope this helps ...

Regards,
Ram.



We Learn the Most When we have to Invent

Options: ReplyQuote


Subject
Written By
Posted
August 25, 2004 09:01AM
Re: strange query
August 26, 2004 04:37AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.