🌈 搜索
📅  最后修改于: 2022-03-11 14:59:56.353000             🧑  作者: Mango
SELECT * FROM t1 WHERE (id,rev) IN ( SELECT id, MAX(rev) FROM t1 GROUP BY id )