LAST_DAY(date ):取得date當月最後一天的日期SELECT LAST_DAY(SYSDATE()) SELECT LAST_DAY(‘2015-02-02') SELECT LAST_DAY(‘2015-02-02 00:22:33')-> 2016-01-31 -> 2015-02-28 -> 2015-02-28