SQLServer 中怎样判断一个数 为整数
如判断下面两个数 谁为整数
2.5
2
------解决方案--------------------
- SQL code
--整数where charindex('.',数字)=0
------解决方案--------------------
可以在语句的最后加上
where a = floor(a)
or
where a = ceil(a)
------解决方案--------------------
where 数字=cast(数字 as int)