Skip to content

Instantly share code, notes, and snippets.

@haradreborn
Created December 4, 2014 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haradreborn/2062083269a6a32757aa to your computer and use it in GitHub Desktop.
Save haradreborn/2062083269a6a32757aa to your computer and use it in GitHub Desktop.
postgresql - export to csv, import from csv
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