Excel / CSV数据到Oracle表并比较数据 [英] Excel/CSV data to Oracle Tables and compare data

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

问题描述

我有两个excel文件(比如XL1,XL2)具有相同的结构。

1)部分XL1数据可能存在于XL2中,几个列值已更改(修改后的字段值)

2)很少有XL1的记录可以在XL2中删除(删除)

3)XL2中可以添加新记录(新增加)


任务

-----

我需要将两个excel加载到同一个(Oracle)数据库中的两个不同的表中并进行比较,并需要输出为

a)修改后的记录(Primary_Key_Field_Value,XL1值(旧值),XL2值(新值)

b)新的(插入的)记录存在于XL @但不在XL1

c)XL中存在的旧(已删除)记录!但不是在XL2。

I have two excel files(say XL1, XL2) with same structure.
1) Part of XL1 data may exist in XL2 with few column values changed(modified field values)
2) Few records of XL1 may be delted in XL2(deleted)
3) New records may be added in XL2(newly added)

Task
-----
I need to load two excel into two different tables in the same (Oracle) database and compare the same and need to give output as
a)Modified records(Primary_Key_Field_Value, XL1 value(old value), XL2 value(New value)
b)New(Inserted) records which are present in XL@ but not in XL1
c)Old(Deleted) records which are present in XL! but not in XL2.

推荐答案

到目前为止你有什么用?
What do you have so far?


@Rabbit


我没有得到您的要求。

让我知道需要做些什么来让您更清楚地了解问题。我应该提供50多列和300,000多条记录的样本数据
@Rabbit
I did not get your quextion.
Let me know what things need to make it more clear to you to understand the problem. should I give sample data, which is of 50+ columns and above 300,000 records


我的意思是你到目前为止解决问题的方法是什么。你有什么代码?你采取了什么措施?您是否至少将Excel中的数据导入数据库?
I mean what have you done so far towards solving your problem. What code do you have? What steps have you taken? Have you at least imported the data from Excel to the database?


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

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