MySQL:如何在多个表中搜索任何列中存在的字符串

MySQL:如何在多个表中搜索任何列中存在的字符串,第1张

MySQL:如何在多个表中搜索任何列中存在的字符串

将全文索引添加到所有这些表中的所有字符串列,然后合并结果

select * from table1 where match(col1, col2, col3) against ('some string')union allselect * from table2 where match(col1, col2) against ('some string')union allselect * from table3 where match(col1, col2, col3, col4) against ('some string')...


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5044379.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存