我有一个类似
的数据集1,2,3,4,5,{1,2,3,4},{1,2,3,4}
我想将数据加载为
columnA ColumnB ColumnC ColumnD ColumnE ColumnF COlumnG
1 2 3 4 5 {1,2,3,4} {1,2,3,4}
我使用了columnF和ColumnG作为clob
答案 0 :(得分:1)
您需要将数据集括在
中"1","2","3","4","5","{1,2,3,4}","{1,2,3,4}"
控制文件必须读取
LOAD DATA
INFILE *
Truncate
INTO TABLE IMPORT_TEST
FIELDS TERMINATED BY ',' optionally enclosed by '"'
TRAILING NULLCOLS
(columnA,columnB,columnC,columnD,columnE,columnF,columnG)
begindata
"columnA","columnB","columnC","columnD","columnE","columnF","columnG"
"1","2","3","4","5","{1,2,3,4}","{1,2,3,4}"