Module14_Moving_Data Flashcards

1
Q

how to load flat files to postgres and EDb

A

COPY for postgres and EDB*Loader for EDB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly