得到的结果保留了小数点四位,但只想要一位,怎么做?
select cast(a*b as numeric(10,1)) from [table]另:如何将123分钟,转变为2.03小时的格式
select cast(123/60.0 as numeric(10,2))
select cast(a*b as numeric(10,1)) from [table]另:如何将123分钟,转变为2.03小时的格式
select cast(123/60.0 as numeric(10,2))
调试欢乐多
字段b保留小数点两位
select a*b from table
得到的结果保留了小数点四位,但只想要一位,并将结果转化为小时格式,怎么做?