round(數字,保留小數位數)函數:四舍五入用法:round(要四舍五入的數字,四舍五入到哪一位),默認保留整數位保留整數位 截取保留小數位 : select round(125.18) ;或者select round(125.18,0);
保留1位小數:select round(125.18,1);
保留2位小數:select round(125.18,2);
更新時間:2017年04月07日
round(數字,保留小數位數)函數:四舍五入用法:round(要四舍五入的數字,四舍五入到哪一位),默認保留整數位保留整數位 截取保留小數位 : select round(125.18) ;或者select round(125.18,0);
保留1位小數:select round(125.18,1);
保留2位小數:select round(125.18,2);