首页
科技
登录
6mi
u
盘
搜
搜 索
科技
sqlserver保留一位小数(不是四舍五入)
sqlserver保留一位小数(不是四舍五入)
it
2025-05-25
33
字段为id,存取的值有1,1.0,1.09。。。。。现在统一取出结果为1.0
select left(cast(id as DECIMAL(18,6) ) , charindex('.',cast(id as DECIMAL(18,6) )) + 1)
转载于:https://www.cnblogs.com/wxcmfz/p/7478993.html
相关资源:sqlserver四舍六入函数
转载请注明原文地址: https://win8.8miu.com/read-1547667.html
最新回复
(
0
)