24 lines
767 B
MySQL
24 lines
767 B
MySQL
declare
|
|
column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin
|
|
execute immediate 'ALTER TABLE LOG_CONFERENCIA ADD INDMESMODIA NUMBER(1,0)';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare
|
|
ja_existe exception;
|
|
pragma exception_init (ja_existe , -00001);
|
|
begin
|
|
execute immediate 'INSERT INTO CONFERENCIA_PENDENCIA VALUES (CONFERENCIA_PENDENCIA_SEQ.NEXTVAL,''ENTRADA DE CORRECAO'', 1, current_date, 1)';
|
|
exception when ja_existe then null;
|
|
end;
|
|
/
|
|
declare
|
|
ja_existe exception;
|
|
pragma exception_init (ja_existe , -00001);
|
|
begin
|
|
execute immediate 'INSERT INTO CONFERENCIA_PENDENCIA VALUES (CONFERENCIA_PENDENCIA_SEQ.NEXTVAL,''SAIDA DE CORRECAO'', 1, current_date, 1)';
|
|
exception when ja_existe then null;
|
|
end;
|