2 HI,MySQL的舍入数 我刚刚更新了增值税上涨的价格表,但是这给我留下了难看的数字,即22.78, 33.24等。 是否有一个脚本,我可以打电话到零的小数让22.78 = 23.00和33.24 = 33.00等等 预先感谢.. 来源 2011-02-23 Richard +0 here:http://dev.mysql.com/doc/refman/5.1/en/mathematical-functions.html#function_round – Galz 2011-02-23 10:15:29
3 使用ROUND() update table set myfield = ROUND(myfield) 来源 2011-02-23 10:16:44 +0 谢谢你... – Richard 2011-02-23 10:31:29 +0 欢迎你,:) – 2011-02-23 11:50:22
here:http://dev.mysql.com/doc/refman/5.1/en/mathematical-functions.html#function_round – Galz 2011-02-23 10:15:29