SQL Server中的自然联接 [英] Natural join in SQL Server

查看:610
本文介绍了SQL Server中的自然联接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在最近的Microsoft SQL Server中是否有对自然联接的支持?版本?还是有一个很好的替代方法可以使SQL Server根据引用完整性来计算ON子句中的谓词?

Is there any support for natural joins in recent Microsoft SQL Server editions? Or is there a good alternative for making SQL Server work out the predicates that would have been in the ON clauses based on the referential integrity?

推荐答案

不,谢谢幸运星

我不敢相信您会希望引擎为您进行猜测 JOIN

I can't believe that you'd want the engine to guess the JOIN for you

相关链接:

  • SQL Server - lack of NATURAL JOIN / x JOIN y USING(field)
  • is NATURAL JOIN any better than SELECT FROM WHERE in terms of performance ?

编辑,解释原因

  • JOIN(无论是使用中还是启用中)都很明确
  • 我应该能够为存储在表中的实体命名列,而不必担心在另一个表中调用什么列,而没有NATURAL JOIN副作用

这篇关于SQL Server中的自然联接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆