健全性检查:Oracle DB WHERE 子句中的 (+) 运算符?
可能的重复:
Oracle“(+)”运算符
因此,我得到了一个包含以下内容的脚本:
SELECT BLAH
FROM A_TABLE T1, A_TABLE T2, A_TABLE T3
WHERE T2.FIELD_1(+) = T1.FIELD_1
AND T3.FIELD_1(+) = T2.FIELD_1
... etc a few more AND clauses that do that same thing
我需要将此脚本转换为MSSQL Server,但我不知道这个操作员在做什么。这有可能是某种打字错误吗?
Possible Duplicate:
Oracle “(+)” Operator
So I was given a script with the following:
SELECT BLAH
FROM A_TABLE T1, A_TABLE T2, A_TABLE T3
WHERE T2.FIELD_1(+) = T1.FIELD_1
AND T3.FIELD_1(+) = T2.FIELD_1
... etc a few more AND clauses that do that same thing
I need to convert this script to MSSQL Server but I have no clue what this operator is doing. Is it possible that this is some kind of typo?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是旧的 Oracle 外连接语法。您应该改用 ANSI 连接语法:
That's the old Oracle syntax for outer joins. You should use the ANSI join syntax instead:
这是 LEFT JOIN 的 Oracle 表示法。
这意味着
(+) 放在可选的一侧。另请阅读:
It is the Oracle notation for LEFT JOIN.
It means
The (+) is put against the optional side. Read also: