SELECT DATEDIFF(LAST_DAY(NOW()), NOW());
DATEDIFF(LAST_DAY(NOW()), NOW())得到了天数为正数,DATEDIFF(NOW(), LAST_DAY(NOW()))得到的天数为负数。
SELECT DATEDIFF(LAST_DAY(NOW()), NOW());
DATEDIFF(LAST_DAY(NOW()), NOW())得到了天数为正数,DATEDIFF(NOW(), LAST_DAY(NOW()))得到的天数为负数。