简体   繁体   English

从Excel PL / SQL读取/加载到数据库表

[英]PL/SQL read/load from excel to database table

The requirement is we need to create a PL/SQL procedure/function to read and load data from an excel file (.xls) to the database tables. 要求是我们需要创建一个PL / SQL过程/函数,以将数据从excel文件(.xls)读取并加载到数据库表中。 The columns/fields of table wherein the the data needs to be loaded are: LineID - Sequence ID ColumnNum - column number from the excel file RowNum - row number from the excel file Value - value of the cell in the excel file 需要在其中加载数据的表的列/字段是:LineID-序列ID ColumnNum-excel文件中的列号RowNum-excel文件中的行号Value-excel文件中单元格的值

I would like to ask if this is possible? 我想问问这是否可能? I searched and found that most of the answers is that loading from an external file is possible if the file is in csv format. 我搜索后发现,大多数答案是,如果文件为csv格式,则可以从外部文件加载。 As for the table format where the data needs to be loaded, the format of the source is the same with the format of the table wherein the data will be loaded. 至于需要加载数据的表格式,源的格式与将要加载数据的表的格式相同。

Thank you in advance. 先感谢您。

您可以为ODBC创建Oracle数据库网关https://docs.oracle.com/cd/E18283_01/gateways.112/e12061/configodbc.htm,然后可以使用databse链接像常规数据库表一样访问xls

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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