比较Excel数据与Oracle数据库C# [英] Compare excel data to oracle database c#

查看:306
本文介绍了比较Excel数据与Oracle数据库C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有以下要求:

从excel读取选定的列(DetailsId,SentDate,Count),并从Oracle数据库获取相应的DetailsId的数据.在网格(MVC)中显示来自excel和数据库的比较数据.

如果数据匹配不执行任何操作,则如果不匹配,请使用excel中的数据更新某些数据库列.


任何建议如何做到的

感谢

Hi
I have the following requirements:

Read selected columns(DetailsId, SentDate, Count) from excel, get data for the respective DetailsId(s) from Oracle database. Show the comparison data from the excel and database in a grid (MVC).

If the data matches do nothing, if there is a mismatch update some database columns with data in the excel.


Any suggestions how this can be done

Thanks

推荐答案

创建一个.NET项目,以:

1)将数据从excel文件中提取到数据集中,
2)连接到oracle数据库并编写SQL脚本以使用DetailsId提取数据,
3)在(数据)网格视图中显示结果,
4)如果需要采取措施,请使用SQL脚本更新数据库.
Create a .NET project to:

1) Extract your data from the excel file into a DataSet,
2) Connect to oracle database and write a SQL-script to extract the data using DetailsId,
3) Show the result(s) in a (data)gridview,
4) If action is needed, update the database with SQL-script.


这篇关于比较Excel数据与Oracle数据库C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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