日期:2014-05-16 浏览次数:22082 次
mysql> select * from gn_Grade; +-------+ | x | +-------+ | 0.000 | | 0.040 | | 0.045 | +-------+ 3 rows in set (0.00 sec) mysql> select TRIM(TRAILING '0' FROM x)+0 from gn_Grade; +-----------------------------+ | TRIM(TRAILING '0' FROM x)+0 | +-----------------------------+ | 0 | | 0.04 | | 0.045 | +-----------------------------+ 3 rows in set (0.00 sec) mysql>