- DECLARE @number1 AS numeric(10,2),@number2 AS numeric(10,2)
- SELECT @number1=10.00,@number2=10.2
-
-
- SELECT
- CASE WHEN CAST(@number1 AS INT)=@number1 THEN ‘整数‘ ELSE ‘小数‘ END,
- CASE WHEN CAST(@number2 AS INT)=@number2 THEN ‘整数‘ ELSE ‘小数‘ END SQL判断一个数是整数还是小数
SQL判断一个数是整数还是小数
原文:http://www.cnblogs.com/yzl495/p/4279847.html