加入表本身还是表本身?
不是很重要......但我有点好奇:自联接的正确术语是什么 - 您是在上本身联接表,还是在到上联接表 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
您将其连接到自身,在要连接的字段上。
You join it to itself, on the fields being joined.
您可能会得到各种答案,因为我不确定是否存在“标准”本身,但我认为
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.我想说的是,您将一个表连接到其自身,
我只会使用 on 来引用正在连接的字段
I would say you join a table to itself
I would only use on to refer to the fields being joined
我会特立独行地说
WITH
。但是,由于 JOIN 本身就是一个动词,因此您不需要更多的东西:I am gonna go all mavericky and say
WITH
. But, since JOIN is itself a verb, you do not need anything more than that: