我正在尝试使用 copy into 命令加载数据。字段具有特殊字符作为值\"
,但 FIELD_OPTIONALLY_ENCLOSED_BY 其转义\
并在加载时出错
Found character '0' instead of field delimiter ';'
数据:
"TOL";"AANVR. 1E K ZIE RF.\";"011188"
在转义第二列值后,它考虑和转义分隔符AANVR. 1E K ZIE RF.\";
,但实际上它应该是AANVR. 1E K ZIE RF.\
.
文件格式
CREATE OR REPLACE FILE FORMAT TEST
FIELD_DELIMITER = ';'
SKIP_HEADER = 1
TIMESTAMP_FORMAT = 'MM/DD/YYYYHH24:MI:SS'
escape = "\\" '
TRIM_SPACE = TRUE
FIELD_OPTIONALLY_ENCLOSED_BY = '\"'
NULL_IF = ('')
ENCODING = "iso-8859-1"
;