在mysql中搜索具有多个值的多列

时间:2017-04-25 14:38:22

标签: mysql

select * from vis_provider where
    FIND_IN_SET(('German'),CONCAT(
                DoctarLanguage1,',',
                DoctarLanguage2,',',
                DoctarLanguage3,',',
                DoctarLanguage4,',',
                DoctarLanguage5,',',
                DoctarLanguage6))

这个Mysql查询正在运行 我想要这样的东西

select * from vis_provider where
    FIND_IN_SET(('German','French'),CONCAT(
                DoctarLanguage1,',',
                DoctarLanguage2,',',
                DoctarLanguage3,',',
                DoctarLanguage4,',',
                DoctarLanguage5,',',
                DoctarLanguage6));

1 个答案:

答案 0 :(得分:0)

select * 
from vis_provider 
where  FIND_IN_SET( 'German' , CONCAT( ... ) )
   OR  FIND_IN_SET( 'French' , CONCAT( ... ) )