加入表本身还是表本身?

发布于 2024-10-07 12:26:38 字数 86 浏览 0 评论 0原文

不是很重要......但我有点好奇:自联接的正确术语是什么 - 您是在本身联接表,还是在上联接表 em> 本身?

Not extremely significant... but I've gotten a bit curious: What's the correct terminology for a self-join - do you join a table on itself, or join a table to itself?

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

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

发布评论

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

评论(5

从此见与不见 2024-10-14 12:26:38

您将其连接到自身,要连接的字段上。

You join it to itself, on the fields being joined.

梦里梦着梦中梦 2024-10-14 12:26:38

您可能会得到各种答案,因为我不确定是否存在“标准”本身,但我认为SELF JOIN非常常见,更不用说不言自明了。是的,您将其加入TO本身。

You're likely to get various answers since I'm not sure there's a "standard" per se, but I think SELF JOIN is pretty common, not to mention self-explanatory. And yes, you join it TO itself.

云之铃。 2024-10-14 12:26:38

我想说的是,您将一个表连接到其自身,

我只会使用 on 来引用正在连接的字段

I would say you join a table to itself

I would only use on to refer to the fields being joined

半葬歌 2024-10-14 12:26:38

我会特立独行地说WITH。但是,由于 JOIN 本身就是一个动词,因此您不需要更多的东西:

TableA joins TableA

I am gonna go all mavericky and say WITH. But, since JOIN is itself a verb, you do not need anything more than that:

TableA joins TableA
初心 2024-10-14 12:26:38
SELECT A.FIELD, B.FIELD
FROM MYTABLE A, MYTABLE B
WHERE A.PK = B.FK
SELECT A.FIELD, B.FIELD
FROM MYTABLE A, MYTABLE B
WHERE A.PK = B.FK
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文