在SQL中,你可以使用ROUND()函数来对amount字段进行四舍五入
ROUND()
amount
SELECT ROUND(amount, 2) AS rounded_amount FROM your_table;
在这个示例中,ROUND()函数接受两个参数:第一个参数是要四舍五入的数值(在这里是amount),第二个参数是小数位数(在这里是2位)。结果将被命名为rounded_amount。
rounded_amount