Module14_Moving_Data Flashcards
1
Q
how to load flat files to postgres and EDb
A
COPY for postgres and EDB*Loader for EDB
2
Q
how to copy data from table to file
A
with the COPY TO command
copy table_name (column_name) to ‘/tmp/location_file.csv’ with CSV HEADER; HEADER will include column names at the top.
3
Q
how to copy data file table to table
A
with COPY FROM command:
copy table_name (column_name) from ‘/tmp/location_file.csv’ with CSV HEADER; HEADER will include column names at the top.