How can I search within a table of comma-separated values?

前端 未结 6 1884
小蘑菇
小蘑菇 2020-12-10 00:25

I have a MySQL table which contains comma-separated values like this:

first row=(3,56,78,12)  
second row=(6,44,2,3)  
third row=(67,4,2,7,1)  
fourth row=(8         


        
6条回答
  •  醉梦人生
    2020-12-10 00:34

    SELECT *
    FROM Table
    WHERE Field IN ($first_row)
    OR Field IN ($second_row)
    OR Field IN ($third_row)
    OR Field IN ($fourth_row);
    

提交回复
热议问题