日期:2014-05-18 浏览次数:20449 次
select b.BH,b.MC from a inner join b on charindex(b.keyword,a.xj)>0 where a.lxbh='03'
------解决方案--------------------
select * from b where exists(select 1 from a where xj like '%'+b.keyword+'%' )
------解决方案--------------------
或自己在條件里加其它條件
select * from b where exists(select 1 from a where patindex('%'+b.keyword+'%',xj)>0 )
------解决方案--------------------
select b.BH,b.MC from a , b where a.xj like '%'+b.keyword+'%'