数据库查询(主键作为条件)

select * from tablename where Id =(select max(id) from tablename where 字段='xxx‘);

原文地址:https://www.cnblogs.com/chechen/p/5458911.html