Adicionada constante no banco

master
Leonardo Oliveira 2024-06-27 12:11:51 -03:00
parent cff21b826d
commit 23b75b0a22
1 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,15 @@
declare
dup_val_on_index exception;
except_02291 exception;
pragma exception_init (dup_val_on_index , -00001);
pragma exception_init (except_02291 , -02291);
begin
execute immediate 'Insert into CONSTANTE (CONSTANTE_ID,NOMBCONSTANTE,DESCCONSTANTE,INDTIPOCONSTANTE,
VALORCONSTANTE,INDMANTENIMIENTOUSUARIO,ACTIVO,FECMODIF,USUARIO_ID)
values (CONSTANTE_SEQ.NEXTVAL,''NUM_ASIENTO_CON_LETRA'',''NUM_ASIENTO_CON_LETRA'',
null,0,null,''1'',sysdate,''1'')';
exception
when dup_val_on_index then null;
when except_02291 then null;
end;