Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Failed to import CVS in HANA

$
0
0

I attempted to import a txt file into a table, which contains BLOB type fields, but it failed. Although the import statement ran successfully, the table was empty. The SQL statement is like below:

 

create table TEST

(ID int primary  key,

content blob);

 

IMPORT FROM CVS FILE '/home/XM/TEST.txt' INTO "XM_CN".TEST

WITH THREADS 10 RECORD DELIMITED BY '\n' FIELD DELIMITED BY '\t';

 

The content of the txt file is:

 

IDCONTENT
1something

 

If I replace the "something" with "1010", the table will be filled.

 

And using insert statement to insert record is also OK:

 

insert into TEST values(2, 'another thing')

 

Can someone help advice this issue?

 

Thanks,

Min  Xu


Viewing all articles
Browse latest Browse all 4343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>