Created
November 24, 2014 19:24
-
-
Save jczaplew/5ae5978f6536fa54c389 to your computer and use it in GitHub Desktop.
Postgres query to CSV with headers
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
Copy (SELECT * FROM table LIMIT 1) To '/Users/me/Desktop/test.csv' DELIMITER ',' CSV HEADER; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment