-
-
Save iplotin/2bbbc8339b844c2252c588aa22896be3 to your computer and use it in GitHub Desktop.
Delete all duplicate rows based on the email field
This file contains hidden or 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
| DELETE c1 FROM `clients` c1, `clients` c2 WHERE c1.`id` < c2.`id` AND c1.`email` = c2.`email`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment