当前位置:Gxlcms > mysql > 删除SQL某个表中重复的记录

删除SQL某个表中重复的记录

时间:2021-07-01 10:21:17 帮助过:21人阅读

假如表为Mytable
SELECT distinct * FROM into 临时表 from MyTable
DELETE from MyTable insert into MyTable
SELECT * FROM 临时表 
drop table 临时表

人气教程排行