数据库联合主键 如何 select数据

2025-03-23 01:27:53
推荐回答(1个)
回答(1):

select * from t where exists (
select 1 from (
select id,max(time) as time from t group by id
) x where x.id=t.id and x.time=t.time

把t 换成你的表名,一共有4个哦