参考:https://blog.csdn.net/u013201439/article/details/78116575
CREATE TABLE count_year SELECT YEAR(reqtime),COUNT(YEAR(reqtime)) FROM bjxj GROUP BY YEAR(reqtime)