摘要: 查询表中相同姓名id最大的数据 1. select a.* from `user` a, (select name ,max(id) as max_id from `user` group by name) b where a.id =b.max_id 2.select * from `user` 阅读全文
posted @ 2021-08-31 17:03 苑庆涛 阅读(803) 评论(0) 推荐(0) 编辑