Advertisement
ghiwar

delete duplicate sql

Aug 6th, 2022
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. DELETE t1 FROM users t1
  2. INNER JOIN users t2
  3. WHERE
  4. t1.id < t2.id AND
  5. t1.id_user_telegram= t2.id_user_telegram;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement