MySQL Forums
Forum List  »  Newbie

Re: Problems with SELECT 'value' IN(field)
Posted by: Felix Geerinckx
Date: July 19, 2005 05:18AM

hannes kannes wrote:

> i have this problem:
>
> SELECT * FROM table WHERE '1' IN(field)
>
> "field" is not a var, it's a table-field and contains values like: 1,2,3

Check out the FIND_IN_SET() function here: http://dev.mysql.com/doc/mysql/en/string-functions.html

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problems with SELECT 'value' IN(field)
July 19, 2005 05:18AM


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.