这个‘近似’是怎么样呢?
如果a.productname='aaa',b.keyword='aa'算不算近似?
如果两者是包含关系,可以这样:
select a.productid,a.productname,b.articleid,b.title,b.keyword from products a left join article b on locate(a.productname,b.keyword) where b.keyword is not null;
如果a.productname='aaa',b.keyword='aa'算不算近似?
如果两者是包含关系,可以这样:
select a.productid,a.productname,b.articleid,b.title,b.keyword from products a left join article b on locate(a.productname,b.keyword) where b.keyword is not null;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货