How to remove headers in database while importing the excel file through sql loader

前端 未结 2 1159
再見小時候
再見小時候 2021-01-26 20:23

I have a excel sheet which has a format like:

 

Name     Address     Phone#    Age
-----    -------     ------    ----
aaa      xxx          123...    11

bbb      yy         


        
2条回答
  •  时光取名叫无心
    2021-01-26 20:54

    I've never used it, but the skip option should do what you need.

    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
    

提交回复
热议问题