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

相关文章: