mysql check if numbers are in a comma separated list

Posted by Tillebeck on Stack Overflow See other posts from Stack Overflow or by Tillebeck
Published on 2010-04-20T09:43:09Z Indexed on 2010/04/20 10:03 UTC
Read the original article Hit count: 306

Filed under:
|
|

Hi

I have a table like this:

UID(int) NUMBERS(blob)
----------------------
1        1,13,15,20
2        3,10,15,20
3        3,15

And I would like to test if 3 and 15 are in the blob called NUMBERS. And can see the LIKE %% cannot be used

Only row with ID 2 and three scoulb be selected...

© Stack Overflow or respective owner

Related posts about mysql

Related posts about in