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