mysql 按照年统计数据并存到新表中

参考:https://blog.csdn.net/u013201439/article/details/78116575

CREATE TABLE count_year 
	SELECT YEAR(reqtime),COUNT(YEAR(reqtime)) FROM bjxj GROUP BY YEAR(reqtime)

 

posted @ 2020-02-16 20:04  枫黎  阅读(240)  评论(0编辑  收藏  举报