Created
March 9, 2019 05:07
-
-
Save nhatnx/7ad37d6dfd3c2d3027b9c71c640bbee8 to your computer and use it in GitHub Desktop.
[MySql] Remove duplicate rows based on one column value
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 t1 FROM table t1 | |
| INNER JOIN table t2 | |
| ON t2.refID = t1.refID | |
| AND t2.ID < t1.ID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment