开发者

Filehelpers Excel to Oracle db

开发者 https://www.devze.com 2022-12-17 06:24 出处:网络
I want to import excel data to oracle DB.I got enough help for Excel part, can you guys help me in Oracle side?

I want to import excel data to oracle DB. I got enough help for Excel part, can you guys help me in Oracle side?

Is it possible to import to oracledb with filehelpers? Please provide some sample code for reference.

Thanks 开发者_如何学运维 Dee


If you save the spreadsheet data as .csv files it is relatively straightforward to import it into Oracle using SQLLoader or external tables. Because we can use SQL with external tables they are generally eaiser to work with, and so are preferable to SQLLoader in almost all cases. SQL*Loader is the betterchoice when dealing with huuuuge amounts of data and when ultra-fast loading is paramount.

Find out more about external tables here. You'll find the equivalent reference for SQL*Loader here.


A simple and relatively fool-proof way to do that for one-off tasks is to create a new column in the excel sheet, containing a formula like that:

="insert into foobar values('"&A1&"','"&A2&"');"

Copy that to all rows, then copy the whole column into an editor and run it in SQL*Plus or sql developer.


I am using Sqlloader to upload data from CSV to Oracle DB.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号