Skip to content

Instantly share code, notes, and snippets.

@Pavelyev
Created April 29, 2015 09:18
Show Gist options
  • Save Pavelyev/637b89d1eee8f9cb041e to your computer and use it in GitHub Desktop.
Save Pavelyev/637b89d1eee8f9cb041e to your computer and use it in GitHub Desktop.
DELETE FROM
TABLE_NAME A
WHERE
a.rowid >
ANY (
SELECT
B.rowid
FROM
TABLE_NAME B
WHERE
A.FIELD1 = B.FIELD1
AND
A.FIELD2 = B.FIELD2
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment