where charindex('001',字段)>0
      and charindex('002',字段)>0
      and charindex('003',字段)>0

解决方案 »

  1.   

    select * from a where 字段 like '%22'
      

  2.   

    我001,002,003 3个都要查寻
    能给句完整的SQL语句参考下吗,谢谢
      

  3.   

    where charindex('001',字段)>0
          or charindex('002',字段)>0
          or charindex('003',字段)>0
      

  4.   

    lsxaa(小李铅笔刀)你的方法报错哦....
      

  5.   

    select * from a where left(字段,3) in('001','002','003')其实默认为001,002,003那么和select * from a是一样的
      

  6.   

    select * from a where left('字段名',3) in('001','002','003')就行了!!!