I want to create temporary table in stored procedure and access it in the same but I got error that ORA-00942:Table or view does not exists. Following is the pr
ORA-00942:Table or view does not exists.
Use this
Create of replace procedure myprocedure is stmt varchar2(1000); stmt2 varchar2(1000); begin stmt := 'create global temporary table temp(id number(10))'; execute immediate stmt; stmt2 := 'insert into temp(id) values (10)'; execute immediate stmt2; end;