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

前端 未结 2 1149
再見小時候
再見小時候 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
    
    0 讨论(0)
  • 2021-01-26 21:11

    Its very simple. Open your Excel file [in Excel 2010 there is a tab called Desgin] click on the Grid or Table which populated by Database records. Now See the design tab under "Table Tools" heading is visible on the top. Click on it.

    There are four checkboxes on of them named as: Header Row, unchecked it and you have the Table withou header.

    0 讨论(0)
提交回复
热议问题