sqlserver保留一位小数(不是四舍五入)时间:2025-03-19 09:09:54字段为id,存取的值有1,1.0,1.09。。。。。现在统一取出结果为1.0 select left(cast(id as DECIMAL(18,6) ) , charindex('.',cast(id as DECIMAL(18,6) )) + 1)