Skip to content

Instantly share code, notes, and snippets.

@rudylee
Created January 15, 2020 04:51
Show Gist options
  • Save rudylee/30bf79d175513fdb62184febd854ab90 to your computer and use it in GitHub Desktop.
Save rudylee/30bf79d175513fdb62184febd854ab90 to your computer and use it in GitHub Desktop.
PostgreSQL find duplicate rows
SELECT column1, count(*)
FROM table
GROUP BY column1
HAVING count(*) > 1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment