Created
January 11, 2017 07:19
-
-
Save kmoppel/124f2420b3c978617fd1cf0a896e3eed 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
-- exporting data with COPY to Excel | |
\copy (select * from t_test limit 2) to '/tmp/test.dump' with (format csv, header) | |
-- on Windows | |
\copy (select * from t_test limit 2) to 'c:\\User\\X\\test.dump' with (format csv, header) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment