我目前使用单个可空值的工作代码:
COPY table FROM 'file.csv' DELIMITER ',' CSV HEADER NULL AS 'NA';
我尝试过的解决方案:
COPY table FROM 'file.csv' DELIMITER ',' CSV HEADER NULL AS 'NA',' ','' ;
COPY table FROM 'file.csv' DELIMITER ',' CSV HEADER NULL AS ('NA',' ','');
COPY table FROM 'file.csv' DELIMITER ',' CSV HEADER NULL IN ('NA',' ','');
预期结果:file.csv
导入所有符合字符串'NA'
,' '
和''
的值已转换为NULL
当前结果:语法错误