通过sql loader导入Excel文件时如何删除数据库中的标头
问题描述:
我有一个Excel表格,其格式如下:
I have a excel sheet which has a format like:
Name Address Phone# Age
----- ------- ------ ----
aaa xxx 123... 11
bbb yyy 345... 21
当我导入这个excel时,我已经将标题(名称,地址,电话号码,年龄)作为表格的第一行.
when i import this excel i have got headers(Name,Address,phone#,Age) as first row of the table.
我只想要没有标题的数据.
i want only data without headers.
任何人都可以帮忙.
TA,
Nishant
答
I've never used it, but the skip
option should do what you need.
您可以这样定义control
文件中要跳过的行数:
You can define the number of rows to skip in your control
file like this:
OPTIONS (SKIP=1)
LOAD DATA INFILE ...
或者您可以在这样的命令上执行此操作:
Or you can do it at the command like like this:
sqlldr userid=xxxx/yyyy control=mycontrolfile.ctl skip=1