I want to import a fair number of csv
files in a single postgreSQL
table. The csv
files differ in the number of fields they contain, but the header row contains fieldnames
which correspond with those in the destination table.
Rather than specifying the fields present in each csv
file using:
COPY destination_table (comma_separated_fields_in_source_file) FROM '/filepath'...
I was wondering whether there is a way to have postgres / pgAdmin
recognise the fieldnames in the header row?
Thanks.