输入值1000.5 查询时显示1001.0 怎么调整
SELECT ROUND( number, [ decimal_places ] ) FROM DUAL
说明:
number : 将要处理的数值
decimal_places : 四舍五入,小数取几位,不填默认为0
例:
SELECT ROUND( 1000.5, [ 1 ] ) FROM DUAL;
SELECT ROUND( 1000.5, 1) FROM DUAL;