select * from 表 where xx like '%yy%'

解决方案 »

  1.   

    select * from 表 where xx like '%'+yy+'%'???select * from 表 where xx in (select yy from 另一个表)???
      

  2.   

    select * from 表 where exists (select 1 from 另一个表 where 表.xx like '%'+yy+'%')??
      

  3.   

    是那种包含,是这种吗?select * from 表 where xx in (select yy from 另一个表)还是其他意思?
      

  4.   

    Select * from Table Where CharIndex(YY,XX) > 0
      

  5.   

    select * from 表 where xx like '%yy%'ORselect * from 表 where charindex('yy' , xx )>0
      

  6.   

    select * from 表 where xx like '%' + yy + '%'