【SQL】根据表中数据,以年月时间排序
select CONCAT(year(CreateTime),'-',month(CreateTime)) as datetime from Record group by year(CreateTime),month(CreateTime) order by year(CreateTime),month(CreateTime) asc得到自己想要数据SQL函数GetDate()当前系统日期 select GETDATE() --结果:2020-11-27 15:.