CREATE TABLE tmp AS (SELECT DISTINCT * FROM oa_organization);--将不重复的数据存入新建临时表tmp DELETE FROM oa_organization;--删除对应的表 INSERT INTO oa_organization SELECT * FROM tmp;--把临时表里的数据存入对应的表 DROP TABLE tmp;--删除临时表
CREATE TABLE tmp AS (SELECT DISTINCT * FROM oa_organization);--将不重复的数据存入新建临时表tmp DELETE FROM oa_organization;--删除对应的表 INSERT INTO oa_organization SELECT * FROM tmp;--把临时表里的数据存入对应的表 DROP TABLE tmp;--删除临时表