select a.* from testTable a inner join (select id,MAX(InDate) as InDate from testTable group by id) b on a.id=b.id and a.InDate =b.InDate 相关文章: 2021-11-21 2021-08-29 2021-12-05 2021-12-05