选出某字段中出现若干次“.”的记录

解决方案 »

  1.   

    select * from tb where (len(col)-len(replace(col,'.','')))>0
      

  2.   

    select * from tb where (len(col)-len(replace(col,'.','')))=@NUM
      

  3.   

    select * from tb where (len(col)-len(replace(col,'.','')))>0
      

  4.   

    select * from tb where charindex('.',col)>0
      

  5.   

    select * from tb where charindex('.',col)>)
      

  6.   

    select * from tb where (len(col)-len(replace(col,'.','')))>0
      

  7.   

    select * from tb where like '%'+'.'+'%'还是用like吧。