Created
October 21, 2008 19:29
-
-
Save da3mon/18391 to your computer and use it in GitHub Desktop.
This file contains 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
#detect duplicates across columns in really large tables | |
psql -d database -c 'select col_1, col_2, col_3 from table order by col_1, col_2, col_3'|tr -ds '|' ' '|awk '{print $1 " " $2 " " $3}'|uniq -d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment