gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 19:04:33 25 4
gpt4 key购买 nike

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));

最佳答案

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

关于mysql - 在mysql中搜索具有多个值的多列,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43613739/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com