Select * From 表 Where Field1 Like '%11,' Or Field1 Like '%11'

解决方案 »

  1.   

    select * from table where charindex(','+'11'+','  ,   ','+text+',')>0  可以搞定
      

  2.   

    http://blog.csdn.net/xluzhong/articles/262154.aspx
      

  3.   

    PATINDEX('%,'+cast('11' as varchar(20))+',%', ','+text+',') > 0
      

  4.   

    Select * From 表 Where Field1 Like '%11%,' Or Field1 Like '%11%'
      

  5.   

    select * from 表名 where ','+字段名+',' like '%,11,%'先把字段开头结尾都加上',',然后模糊查询',11,'