求一句SQL,选出某字段中出现若干次“.”的记录。(次数可以指定)

解决方案 »

  1.   

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

  2.   

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

  3.   

    --日少了Len()
    select * 
    from tb
    where len(col)-len(replace(col,'.',''))=@次數
      

  4.   

    消息 245,级别 16,状态 1,第 1 行
    在将 varchar 值 'root' 转换成数据类型 int 时失败。
      

  5.   

    select * from tb where (len(col)-len(replace(col,'.','')))>0
    我赞同小F的
      

  6.   

    那这个SQL语句,在ORACLE里有没有类似的函数?
      

  7.   

    ORACLE
    不知道了
    幫頂吧
      

  8.   

    好吧 我去Oracle板块问一下