MySQL Forums
Forum List  »  Newbie

help in select ... where ...like...
Posted by: Yashaswini P
Date: July 16, 2009 03:37AM

Hi,

I have a table with field1 values like,


1,3,5,2,3,11
3,5,6,1,5,6
2,11,3,4,1,7
7,9,11,3,6,3


Now I want the rows which consists the number 1.

If I use the query

select * from table where field1 like '%1%'

I am also getting results which are having 11 and not having 1

Please help me.

Options: ReplyQuote


Subject
Written By
Posted
help in select ... where ...like...
July 16, 2009 03: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.