mysql数据库查询 查询一张表某列中是都包含另一张表某列的数据

2022-08-14 08:16

2022-08-14 09:29
select * from A , B where A.id = B.id and B.sentence = A.content(+)
哦...不知道是不是这意思
更多回答
select t1.id,t1.content,t2.sentence
from 微博信息表 t1 join 负面词汇表 on instr(t1.content,t2.sentence)>0

不知道这2个表的具体关系,如微博信息表中的id与负面词汇表中的id是都是微博信息的id?

试试locate函数
热门问答