I was wondering if there is someway i can handle a exception if i get an error while creating a table during a procedure.
IF testes=0 then
stmt:= 'create table ' || prefix || SII_BCK_TAB_ID_SEQ.nextval || ' AS SELECT * FROM '|| n_tab || ' WHERE 1=0';
EXECUTE IMMEDIATE stmt;
can i create a exception after executing the statement? what is the best process to handle errors while creating a table? or is it the same as handling dml statements?
can i insert something like savepoints? thank you
execute immediate. It doesn't matter what the underlying statement is. The exception handling code would deal with that in PL/SQL.