linux卸载mysql数据库,mysql数据库中怎么删除重复的数据

更新时间:01-24 教程 由 浅殇 分享
linux卸载mysql数据库,mysql数据库中怎么删除重复的数据?

1. 查询需要删除的记录,会保留一条记录。 select a.id,a.subject,a.RECEIVER from test1 a left join (select c.subject,c.RECEIVER ,max(c.id) as bid from test1 c where status=0 GROUP BY RECEIVER,SUBJECT having count(1) >1) b on a.id1) b where a.subject=b.subject and a.RECEIVER = b.RECEIVER and a.id

声明:关于《linux卸载mysql数据库,mysql数据库中怎么删除重复的数据》以上内容仅供参考,若您的权利被侵害,请联系13825271@qq.com
本文网址:http://www.25820.com/tutorial/14_2208812.html