Created
October 25, 2013 13:40
-
-
Save dodopok/7154885 to your computer and use it in GitHub Desktop.
Apaga registros duplicados no MySQL deixando o primeiro.
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 n1 FROM lancamento_contas n1, lancamento_contas n2 WHERE n1.id > n2.id AND n1.nroduplicata = n2.nroduplicata AND n1.group_id = n2.group_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment