Why doesn't Oracle tell you WHICH table or view does not exist?

前端 未结 8 1199
时光取名叫无心
时光取名叫无心 2021-01-31 13:43

If you\'ve used Oracle, you\'ve probably gotten the helpful message \"ORA-00942: Table or view does not exist\". Is there a legitimate technical reason the message doesn\'t incl

8条回答
  •  感情败类
    2021-01-31 14:25

    I would disagree with the opinion, that SQL+ lets you understand which table name is unacceptable. True, it helps in direct DML, although parsing it is very hard. But when it comes to dynamic, we get no help:

    SQL> begin
      2  execute immediate 'insert into blabla values(1)';
      3  end;
      4  /
    begin
    *
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at line 2
    

提交回复
热议问题