SQL-----group by 查询多个字段时间:2022-08-15 18:53:18 select * from test as a where a.dateCreated = (select max(dateCreated) from test as b where a.name=b.name) 按name分组