相同数据中选择id最大数据 的sql

select max(id)id ,name, age from tablename group by name, age

原文地址:https://www.cnblogs.com/qingyundian/p/12049535.html