Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/57.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在mysql中搜索多值多列_Mysql - Fatal编程技术网

在mysql中搜索多值多列

在mysql中搜索多值多列,mysql,Mysql,这个Mysql查询正在运行 我想要这样的东西 select * from vis_provider where FIND_IN_SET(('German'),CONCAT( DoctarLanguage1,',', DoctarLanguage2,',', DoctarLanguage3,',', DoctarLanguage4,',',

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

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

你有什么问题?另外,请包括表格结构。这里已经解决了这个问题:我正在做的可能重复:-从vis_provider中选择*,其中(DoctarLanguage1 in('Spanish','German'))或(DoctarLanguage2 in('Spanish','German'))或(DoctarLanguage3 in('Spanish','German'))或(DoctarLanguage4 in('Spanish','German'))或者(DoctarLanguage5 in('Spanish','German'))或者(DoctarLanguage6 in('Spanish','German'))我们可以有不同的方法来编写代码;
select * from vis_provider where
    FIND_IN_SET(('German','French'),CONCAT(
                DoctarLanguage1,',',
                DoctarLanguage2,',',
                DoctarLanguage3,',',
                DoctarLanguage4,',',
                DoctarLanguage5,',',
                DoctarLanguage6));
select * 
from vis_provider 
where  FIND_IN_SET( 'German' , CONCAT( ... ) )
   OR  FIND_IN_SET( 'French' , CONCAT( ... ) )