I have a CSV which contains column names and data, but does not have the column ID. When I import my data via this command line:
type "..\MyCSVtoImport.csv" | "..\psql.exe" -h MyServerPostgres -p 5432 -U "MyUser" -c " COPY mytable FROM STDIN DELIMITER ',' CSV HEADER; " MyBase
I still have this error : ERROR: missing data for column "id"
Thanks for your help