to_char 截取创建时间 到月 分组查询 每月数量
sql
SELECT to_char(t.create_time, 'yyyy-MM'),count(1) FROM jsh_msg t group by to_char(t.create_time, 'yyyy-MM') order by create_time desc