例子:
SELECT * FROM table WHERE YEAR(date) = '2017' ORDER BY date DESC;
其中table为表名,date为日期项。year可以换为month或day。
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!