Oracle - 外键中的NULL?
我正在尝试回答以下问题...
“解释当构成外键的列中存在 NULL 时出现的问题。讨论 ANSI 如何尝试通过可以采用的三个“匹配规则”来解决此问题使用串联外键时。”
谁能指出我这些“匹配规则”的正确方向? 我最初以为他们指的是 OUTER JOINS,但我不再确定了。
任何意见,将不胜感激。 谢谢。
I'm trying to answer the following question...
"Explain the issues that arise when NULLs are present in columns that make up foreign keys. Discuss how ANSI have attempted to resolve this issue with the three 'matching rules' that can be adopted when using concatenated foreign keys."
Can anyone point me in the right direction as to what these 'matching rules' are? I initially thought they were referring to OUTER JOINS, but I'm not sure anymore.
Any advice would be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我没记错的话,这些规则是关于复合外键的。 例如,考虑如下定义的地址表:
其中 (order,orderline) 是 orderline 表的外键。 匹配规则决定当外键的一部分为 NULL 时联接的行为方式。 例如,如下行:
这是一篇关于部分外键的 文章(PDF下载,6页)相关部分似乎是:
If I remember right, these rules are about composite foreign keys. For example, consider an address table defined like:
Where (order,orderline) is a foreign key to the orderline table. The matching rules decide how joins behave when one part of the foreign key is NULL. For example, a row like:
Here's an article about partial foreign keys (PDF download, 6 pages) The relevant part seems to be: