先做个备份
create table SECROLEUSERMAP_20141022 as select * from SECROLEUSERMAP
删除重复数据
DELETE
FROM SECROLEUSERMAP a
WHERE a.rowid != ( SELECT max(b.rowid)
FROM SECROLEUSERMAP b
WHERE b.oid=a.oid);
Ok!
先做个备份
create table SECROLEUSERMAP_20141022 as select * from SECROLEUSERMAP
删除重复数据
DELETE
FROM SECROLEUSERMAP a
WHERE a.rowid != ( SELECT max(b.rowid)
FROM SECROLEUSERMAP b
WHERE b.oid=a.oid);
Ok!