MySQL floor()函数
FLOOR(X)
该函数返回X的最大整数值,但不能大于X
mysql>SELECT FLOOR(7.55); +---------------------------------------------------------+ | FLOOR(7.55) | +---------------------------------------------------------+ | 7 | +---------------------------------------------------------+ 1 row in set (0.00 sec)