select * from test A where date=(select max(date) from test B where A.sub_dh=B.sub_dh)
转载于:https://www.cnblogs.com/NightWind/p/6602142.html
select * from test A where date=(select max(date) from test B where A.sub_dh=B.sub_dh)
转载于:https://www.cnblogs.com/NightWind/p/6602142.html