Se Agrego la excepción em caso de que la tabla no exista

master
Luis Angel Espina Hernandez 2024-10-22 16:13:00 -04:00
parent cc818d1dfd
commit bc6660eb12
1 changed files with 3 additions and 0 deletions

View File

@ -1,12 +1,15 @@
declare
object_exists exception;
except_00957 exception;
table_exists exception;
pragma exception_init (object_exists , -01430);
pragma exception_init (except_00957 , -00957);
pragma exception_init(table_exists, -942);
begin
execute immediate 'ALTER TABLE CONFIG_PRODUCTO_PARADA RENAME COLUMN CONF_PRODUCTO_PARADA_ID TO CONFIGPRODUCTOPARADA_ID';
exception
when object_exists then null;
when except_00957 then null;
when table_exists then null;
end;