日期:2014-05-16  浏览次数:21032 次

mysql保留字段小数点后两位小数
用函数:truncate(s.price,2)即可。
如果想用四舍五入的话用round(s.price,2)。