0

I'm pretty sure there are already topics on this subject. I just can't find them. Sorry...

I want to select rows from a table where column = 1 or 2, or 3, or 3.

I need to use FIND_IN_SET because I don't know those numbers.

What I have now is (the numbers are an example):

SELECT
    *
FROM
    my_table
WHERE
    FIND_IN_SET(my_column, '1,2,3,3')

The query, sure, returns 3 rows.

I need 4, cause I have 4 numbers...

Andrei
  • 160
  • 2
  • 14

0 Answers0