如何称呼引用同一个表中的列的列?

发布于 2024-08-19 21:56:39 字数 160 浏览 3 评论 0原文

有一个术语可以标识一个表列,该列引用另一个表中的列。这就是术语“外键”。

是否有一个术语可以标识一个表列,该列引用同一个表中的列?

此类列的一个示例是“item_parent”列,它引用下表中的“item_id”列:
项目(item_id,item_parent);

There is a term that identifies a table column that refers to a column in another table. That is the term "foreign key".

Is there a term that identifies a table column that refers to a column in the same table?

An example of such column is the "item_parent" column which refers to the "item_id" column in the following table:
items(item_id, item_parent);

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

温暖的光 2024-08-26 21:56:40

除了“自引用”之外,还有“反身关系”这个术语。

有关 MSDN 中的参考,单击此处

In addition to "self-referencing", there's the term "reflexive relationship".

For a reference in the MSDN, Click Here

月亮邮递员 2024-08-26 21:56:40

您从哪里得到“外键”必须引用其他表(因此必须存在引用同一个表的外键的其他术语)的错误想法?

Where did you get the -false- idea that "foreign keys" must necessarily reference other tables (and that there therefore must exist some other term for a foreign key that references the very same table) ?

遥远的她 2024-08-26 21:56:39

SQL Server 的文档中,这些引用被称为“自我引用”。

In docs for SQL Server these references are called "self-references".

梅倚清风 2024-08-26 21:56:39

这种类型的表通常称为“自引用”。

我不知道自引用外键涉及的列的具体术语。

Tables of this type are generally referred to as "self-referencing".

I'm not aware of a specific term for columns involved in a self-referencing foreign key.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文