Created
January 15, 2022 12:57
-
-
Save nahanil/ac02b551d138b9c8f5ba36ac8da18cd3 to your computer and use it in GitHub Desktop.
sqlite: deduplicate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- https://dba.stackexchange.com/a/116870 | |
DELETE FROM sms WHERE rowid NOT IN (SELECT min(rowid) FROM sms GROUP BY address, body); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment