我想将csv文件导入hana数据库。它的工作正常,控制文件如下所示:
IMPORT DATA
INTO TABLE "schema"."table"
FROM '/table'
RECORD DELIMITED BY '\n'
FIELD DELIMITED BY '|'
OPTIONALLY ENCLOSED BY '“'
ERROR LOG '/errorlog'
有机会在不同的表中导入不同的csv文件吗? 像:
IMPORT DATA
INTO TABLE "schema"."table"
FROM '/table'
RECORD DELIMITED BY '\n'
FIELD DELIMITED BY '|'
OPTIONALLY ENCLOSED BY '“'
ERROR LOG '/errorlog'
IMPORT DATA
INTO TABLE "schema"."table2"
FROM '/table2'
RECORD DELIMITED BY '\n'
FIELD DELIMITED BY '|'
OPTIONALLY ENCLOSED BY '“'
ERROR LOG '/errorlog'
我希望你能帮助我。
答案 0 :(得分:1)
好的, 为什么不在HDBSQL中打开多命令模式然后将IMPORT DATA语句与语句分隔符(通常是分号;)分开?
就像使用任何其他SQL命令集一样。