mysql查询练习

来源:互联网 发布:红帽子linux iso下载 编辑:程序博客网 时间:2024/04/27 19:42

mysql删除重复记录,保存Id最小的一条

delete from student where id not in (select minid from (select min(id) as minid from student group by name) b);
0 0
原创粉丝点击