Created
December 14, 2023 05:49
-
-
Save sagar290/f9357111eaba2a4154e01db805565954 to your computer and use it in GitHub Desktop.
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
# for select duplicate | |
SELECT * FROM `lb` t1, `users` t2 WHERE t1.user_id = t2.id AND t2.dff_stm = 1 ; | |
# for delete duplicate | |
DELETE t1 FROM `lb` t1, `users` t2 WHERE t1.user_id > t2.id AND t2.dff_stm = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment