水壶/自动参考表
我有一张包含人员的 Excel 表,每个人都有一个父亲和一个母亲,位于同一个人员表中。我的 exel 表看起来像这样:
poeple --- father --- mother
john -------- tony --- -- jane
tony -------- jack
我想将数据导入到 Oracle 数据库表中,如下所示:
id --- poeple -- - 父亲 --- 母亲
0 -----杰克
1 -----tony-------- 0
2 -----jane
我的工作流程应该是什么?
3 ----约翰 -------- 1------------2
I have an excel sheet with poeple, each people has a father and a mother that is in the same poeple sheet. My exel table looks like that :
poeple --- father --- mother
john -------- tony ----- jane
tony -------- jack
I would like to import the datas to an Oracle database table that look like :
id --- poeple --- father --- mother
0 -----jack
1 -----tony-------- 0
2 -----jane
what should be my workflow ?
3 ----john -------- 1-----------2
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
至少首先将数据加载到具有代理 ID 的表中会更容易:
然后您可以为尚未在“人员”列中的父亲和母亲添加行:
这将为您提供:
然后您可以添加代理每行的 ID 并在需要时使用它。
It would be easier to at least start by loading the data into a table with the surrogate ID:
Then you can add rows for the fathers and mothers not already in the "people" column:
That will give you:
You can then add a surrogate ID for each row and use that instead, if you need it.