Reputation: 1041
I need to check like where (1,2,3) match (column2) here column2 itself a comma seperated string, if any any value in column2 we need to get that row. Thanks in advance.
where (1,2,3) match (column2)
Upvotes: 0
Views: 130
Reputation: 125865
Use MySQL's IN operator:
IN
WHERE column2 IN (1,2,3)
Upvotes: 1