例子:SELECT * FROM table WHERE YEAR(date) = '2017' ORDER BY date DESC;其中table为表名,date为日期项。year可以换为month或day。