简体   繁体   中英

How to import Excel table with double headers into oracle database

I have this excel table I am trying to transfer over to an oracle database. The thing is that the table has headers that overlap and I'm not sure if there is a way to import this nicely into an Oracle Database.

+-----+-----------+-----------+
|     | 2018-01-01| 2018-01-02|
|Item +-----+-----+-----+-----+
|     | RMB | USD | RMB | USD |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+
|     |     |     |     |     |
+-----+-----+-----+-----+-----+

The top headers are just the dates for the month and then their respective data for that date. Is there a way to nicely transfer this to an oracle table?

EDIT: Date field is an actual date such as 02/19/2018.

If you pre-create a table (as I do), then you can start loading from the 3rd line (ie skip the first two), putting every Excel column into the appropriate Oracle table column.

Alternatively (& obviously), rename column headers so that file wouldn't have two header levels).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM