- 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)[email protected] THEN ‘整数‘ ELSE ‘小数‘ END,
- CASE WHEN CAST(@number2 AS INT)[email protected] THEN ‘整数‘ ELSE ‘小数‘ END SQL判断一个数是整数还是小数
时间: 2024-10-12 13:16:57