I have a csv file with headers. 4 columns.
I need the first 3 columns in table A, and the last column in table B.
Table A has an ID, which should be set by default (not from columns).
Here's what I've tried:
COPY a FROM '/home/bijan/Downloads/test_events.csv' WITH CSV HEADERS
The (first) problem I run into with this is it's not setting the default value for the ID of the table 'A', instead it thinks the first column of the CSV is the first column in the table (which should be default).
Thank you for your time. :)