Sql错误"无效的标识符"

时间:2017-01-08 22:17:43

标签: sql oracle oracle11g

任何人都知道我为什么会收到错误?

create or replace view PROD as
  select
    mytable.name as description
  from table_name mytable
  join another_table another on another.id in (
      select mytable1.id
      from table_name mytable1
      start with mytable1.id = mytable.id
      connect by prior mytable1.id = mytable1.parent_id);
Error at Command Line:8 Column:41
Error report:
SQL Error: ORA-00904: "MYTABLE"."ID": invalid identifier
00904. 00000 -  "%s: invalid identifier"
*Cause:    
*Action:

这实际上适用于我的本地数据库安装。但是,不是任何其他。在Oracle数据库上运行。

谢谢

1 个答案:

答案 0 :(得分:0)

版本问题:

  1. Oracle数据库11g企业版11.2.0.1.0版 - 生产
  2. Oracle Database 12c标准版12.1.0.2.0版 - 64位 生产
  3. 其中1.是此语法不起作用的那个。

相关问题