-
SitePoint Enthusiast
MySQL: Find if a value is in a list of values
Hi all,
I have a text field that contains a list of IDs e.g. 16,20,24,29,38,40
I need to find any records where that field contains a particular ID.
I thought that something like SELECT * FROM tablename WHERE IDlistfield CONTAINS myID but that doesn't work.
Can anyone point me in the right direction?
TIA
Tom
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks