I have a CSV file with following format example:
"MC97898","","","file1.txt","01-APR-2020","01-APR-2020"
"MC97899","","","file2.txt","01-APR-2020","01-APR-2020"
"MC97891","","","file3.txt","01-APR-2020","01-APR-2020"
"MC97892","","","file4.txt","01-APR-2020","01-APR-2020"
"MC97893","","","file.xt","01-APR-2020",
"MC97894","","","file.xt","01-APR-2020","01-APR-2020"
"MC97895","","","file.xt","01-APR-2020","01-APR-2020"
"MC97896","","","file.xt","01-APR-2020",
…
1.5 billion records
table xx(receipt_number, id, mig_filename, mig_inserted_dt, mig_modified_dt)
I can run copy in psql but can't import CSV with null value on date (mig_modified_dt) using PGAdmin?
1st it complains about unterminated CSV, then invalid syntax for type timestamp, I altered it to date, still invalid syntax. I put two single quote on NULL strings ('') on PGAdmin 4, still error even '\N' even blank, still error.
Can we import in PGAdmin if the blank string comes through as null value on date/timestamp column?