0

I have a dataset which is like

1,2,3,4,5,{1,2,3,4},{1,2,3,4}

I want to load the data as

 columnA ColumnB ColumnC ColumnD ColumnE ColumnF   COlumnG
 1       2       3       4       5       {1,2,3,4} {1,2,3,4}

I have used columnF and ColumnG as clob

1 Answer 1

1

You need to enclose your dataset as

"1","2","3","4","5","{1,2,3,4}","{1,2,3,4}"

The control file must read

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}"
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.