Created
July 16, 2018 20:10
-
-
Save nara-l/c8e97bc02f673af21e040987c6aa7b68 to your computer and use it in GitHub Desktop.
A better and faster way to count distinct psycopg2 / python
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
| SELECT COUNT(*) FROM (SELECT DISTINCT column_name FROM table_name) AS temp; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment