I am using the next cmd to import a csv file to my PostgreSQL table:
\copy myTable from 'myTable_sample_nh.csv' with delimiter E'\t' null as '\x00';
ERROR: invalid input syntax for type numeric: ""
CONTEXT: COPY myTable, line 1, column salary: ""
How can I do to bypass this error? I mean, during an INSERT row operation, if I do not specify a column then the DB does not assign a value to that column. In this case, the CSV file does not have a value for a numeric column field so the intention is to assign no value to that column.