Home > Database > Mysql Tutorial > body text

SQL (博客)日志归档

WBOY
Release: 2016-06-07 17:43:39
Original
889 people have browsed it

SELECT year(sj), month(sj), count(id) FROM News GROUP BY year(sj), month(sj) ORDER BY year(sj) DESC , month(sj) DESC; 结果如图:

SELECT year(sj), month(sj), count(id)
FROM News
GROUP BY year(sj), month(sj)
ORDER BY year(sj) DESC , month(sj) DESC;

结果如图:

,香港服务器,香港虚拟主机,香港服务器
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!