举例:
DELETE FROM student WHERE ROWID IN
(SELECT A.ROWID FROM student A,student B
WHERE A.sno=B.sno AND A.ROWID > B.ROWID);
或者
DELETE FROM student d WHERE d.rowid >
(SELECT MIN(x.rowid) FROM student x WHERE d.sno=x.sno);
举例:
DELETE FROM student WHERE ROWID IN
(SELECT A.ROWID FROM student A,student B
WHERE A.sno=B.sno AND A.ROWID > B.ROWID);
或者
DELETE FROM student d WHERE d.rowid >
(SELECT MIN(x.rowid) FROM student x WHERE d.sno=x.sno);