hazelsisson
Programmer
Hello,
I have a PL/SQL procedure that creates a temporary global table (after checking that it doesn't already exist). Later on in the procedure, values are inserted into the table (after checking again to see if it exists).
The problem is, when I compile the code I get the error "PL/SQL: ORA-00942: table or view does not exist", which points to the insert statement. This is because the table has not yet been created, but if the code before that particular line had been executed the table would exist!
It all works fine if I create the table first in SQL*Plus but obviously this is not practical.
Is there any way I can get round this problem? I'm using Oracle 9i JDeveloper.
Thanks,
Hazel
I have a PL/SQL procedure that creates a temporary global table (after checking that it doesn't already exist). Later on in the procedure, values are inserted into the table (after checking again to see if it exists).
The problem is, when I compile the code I get the error "PL/SQL: ORA-00942: table or view does not exist", which points to the insert statement. This is because the table has not yet been created, but if the code before that particular line had been executed the table would exist!
It all works fine if I create the table first in SQL*Plus but obviously this is not practical.
Is there any way I can get round this problem? I'm using Oracle 9i JDeveloper.
Thanks,
Hazel