假设我将一个64位浮点数double插入到DECIMAL(17,5)字段中。这个值会被四舍五入还是截断?
它进行四舍五入:
select cast(9.12345 as decimal(10,4))
9.1235