I want to copy a CSV file into the table r. In the file, the string "NULL" represents NULL, so I tried:
copy r from 'file.csv' WITH NULL AS 'NULL' DELIMITER ';' CSV HEADER;
This works. But another file contains two values that represent NULL: The string "NULL" and an empty string "". How can I declare that several values should be interpreted as NULL?