当前位置:Gxlcms > 数据库问题 > php mysql decimal 多余的0 解决方案

php mysql decimal 多余的0 解决方案

时间:2021-07-01 10:21:17 帮助过:3人阅读

id,(0+cast(price as decimal(10,2))) as price,title from goods where id=1

2 就是最多的保留小数位数

php mysql decimal 多余的0 解决方案

标签:code   mysql   class   bsp   rom   cas   tle   解决   span   

人气教程排行