Created
December 4, 2014 14:09
-
-
Save haradreborn/2062083269a6a32757aa to your computer and use it in GitHub Desktop.
postgresql - export to csv, import from csv
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 triplet_original TO '/tmp/triplet_original.csv' DELIMITER E'\t' CSV HEADER; | |
COPY "STA_apps" FROM '/var/www/tmp/sta/sta_cod.txt' WITH (FORMAT csv, DELIMITER E'\t', NULL 'NULL', HEADER); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment