MySQL Forums :: Newbie :: help in select ... where ...like...


Advanced Search

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... Yashaswini P 07/16/2009 03:37AM
Re: help in select ... where ...like... laptop alias 07/16/2009 04:59AM
Re: help in select ... where ...like... Yashaswini P 07/16/2009 05:28AM
Re: help in select ... where ...like... Rick James 07/18/2009 02:51PM


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.