时间:2021-07-01 10:21:17 帮助过:23人阅读
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;
结果如图: