--1 select a.* , b.* from a , b where charindex('、' + a.col + '、' , '、' + b.col + '、') > 0--2 select a.* , b.* from a , b where '、' + b.col + '、' like '%、' + a.col + '、%'
或者干脆去掉顿号--1 select a.* , b.* from a , b where charindex(a.col , replace(b.col,'、','') > 0--2 select a.* , b.* from a , b where replace(b.col,'、','') like '%' + a.col + '%'
select a.* , b.* from a , b where
charindex('、' + a.col + '、' , '、' + b.col + '、') > 0--2
select a.* , b.* from a , b where
'、' + b.col + '、' like '%、' + a.col + '、%'
select a.* , b.* from a , b where charindex(a.col , replace(b.col,'、','') > 0--2
select a.* , b.* from a , b where replace(b.col,'、','') like '%' + a.col + '%'