用 like '%.%' 判断是否有小数点。

解决方案 »

  1.   

    ISNUMERIC ( expression )
      

  2.   

    用这个来判断:
    CHARINDEX ( '.' , '要查数字段')
      

  3.   

    --检测不符合整型的数据:
    select  sz  from  bd_sbsxbjg  where  isnumeric(sjlx)=0 or sjlx like '%.%'
    --检测不符合浮点型的数据:
    select  sz  from  bd_sbsxbjg  where  isnumeric(sjlx)=0
      

  4.   

    --检测是整型的数据:
    select  sz  from  bd_sbsxbjg  where  isnumeric(sjlx)=1 and charindex('.',sjlx)=0
    --检测是浮点型的数据:
    select  sz  from  bd_sbsxbjg  where  isnumeric(sjlx)=1 and sjlx like '%.%'