文档解释
ORA-30365: left relation in the JOIN KEY clause cannot be same as right
Cause: The relation of the child columns on the left side of the JOIN KEY clause was the same as that of the parent level on the right side.
Action: Remove the JOIN KEY clause. It is not required or allowed when the child and the parent are in the same relation.
。
ORA-30365 错误表明,在JOIN KEY子句中,左边的关系不能和右边的关系相同。
官方解释
ORA-30365 异常表示在 JOIN 子句中左边指定的表与右边指定的表相同。
常见案例
假设有两个表A和B,这时候如果我们使用如下的SQL语句:
SELECT *
FROM A
JOIN A, B on A.id = B.id
这时在执行这条语句的时候,就会报出ORA-30365错误。
一般处理方法及步骤
正确使用JOIN语句的方式应如下:
SELECT *
FROM A
JOIN B on A.id = B.id
按照上面的规则,使用JOIN语句,可以避免ORA-30365错误。
香港美国云服务器首选树叶云,2H2G首月10元开通。
树叶云(www.IDC.Net)提供简单好用,价格厚道的香港/美国云服务器和独立服务器。IDC+ISP+ICP资质。ARIN和APNIC会员。成熟技术团队15年行业经验。
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/278925.html<

