标签: sql
SELECT ROUND(CAST (6348.4644 AS decimal (6,2)),1)
结果是:6348.50
6348.50
期望的结果:6349.00
6349.00
答案 0 :(得分:1)
如果您希望始终四舍五入到上方,请使用ceiling函数
ceiling
SELECT CAST ( ceiling( 6348.4644 ) AS decimal (6,2) )