标签:保留 run div mysql 1.3 trunc blog logs bsp
TRUNCATE(x,y) 用于对 x 进行截取,结果保留小数点后 y 位
mysql> SELECT TRUNCATE(1.31,1), TRUNCATE(1.99,1), TRUNCATE(1.99,0); +------------------+------------------+------------------+ | TRUNCATE(1.31,1) | TRUNCATE(1.99,1) | TRUNCATE(1.99,0) | +------------------+------------------+------------------+ | 1.3 | 1.9 | 1 | +------------------+------------------+------------------+
标签:保留 run div mysql 1.3 trunc blog logs bsp
原文地址:http://www.cnblogs.com/pzk7788/p/6891785.html