如何使用.net应用程序直接将Excel工作表数据读取/捕获到Oracle数据库表中. [英] How to read/capture Excel sheet data into the Oracle database table directly using .net application.

查看:80
本文介绍了如何使用.net应用程序直接将Excel工作表数据读取/捕获到Oracle数据库表中.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

全部,

我有一个Excel工作表,因为我有很多数据可以直接通过.net应用程序导入到oracle数据库中.在这里,我在excel工作表中有很多数据,因此我们必须读取这些数据,然后使用.net应用程序直接将其插入到oracle数据库中.我需要一个.net应用程序,在这里我们使用浏览按钮浏览该数据内容excel工作表,因此我们必须捕获这些excel工作表数据并直接插入到oracle表中.

这里的数据是列,行和行.行作为列.那么在这种情况下如何阅读.

Dear

All,

I have an excel sheet, in that i have lot data to importing into the oracle database directly thorugh a .net application. Here I have plenty of data in excel sheet, so we have to read this data and inserting into the oracle database directly using .net application. I want a .net application, here we browse that data content excel sheet with browse button, so we have to capture these excel sheet data and inserted into the oracle table directly.

Here data is columns as rows & rows as columns. So how to read in this case.

firstname      vijay        vikram       vikek      varun

lastame        kumar      rathod      goshal    kandari

mobile         45425      456546      54656     454615   


就像上面我在excel工作表中的数据一样,因此如何捕获此类数据.请让我知道.

请有人对我的要求有解决方案吗?请让我告知.

在此先感谢...


like above my data in excel sheet so how capture this kind of data. please let me know.

please anybody have the solution about my requirement? please let me inform.

In Advance Thanks...

推荐答案

我将创建一个DataTable并将所选的单元格复制到此表,然后将数据发送到Oracle.除此之外,我认为没有人会为您提供可供使用的完整代码.
I would create a DataTable and copy the selected cells to this, then send the data to the Oracle. Other than that, I dont think anybody is likely to give you a complete code that is ready to use.


也许可以从.NET调用Oracle loader工具吗?
http://docs.oracle.com/cd/E11882_01/server.112/e16536/ldr_concepts.htm#SUTIL003 [ ^ ]
您并不是要指定哪个版本的oracle.

或这样:
http://www.orafaq.com/node/848 [
Maybe call the Oracle loader tool from .NET?
http://docs.oracle.com/cd/E11882_01/server.112/e16536/ldr_concepts.htm#SUTIL003[^]
You''re not specifying which version of oracle by the way.

Or this:
http://www.orafaq.com/node/848[^]


这篇关于如何使用.net应用程序直接将Excel工作表数据读取/捕获到Oracle数据库表中.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆