16 lines
526 B
SQL
16 lines
526 B
SQL
declare
|
|
ja_existe exception;
|
|
pragma exception_init (ja_existe , -00001);
|
|
begin
|
|
execute immediate 'UPDATE PTOVTA_SEGURO SET INDVENDSEGTABELA = 1 WHERE INDVENDSEGTABELA IS NULL OR INDVENDSEGTABELA = 0';
|
|
exception when ja_existe then null;
|
|
end;
|
|
/
|
|
declare
|
|
ja_existe exception;
|
|
pragma exception_init (ja_existe , -00001);
|
|
begin
|
|
execute immediate 'UPDATE PTOVTA_SEGURO SET INDESTANSEGTABELA = 1 WHERE INDESTANSEGTABELA IS NULL OR INDESTANSEGTABELA = 0';
|
|
exception when ja_existe then null;
|
|
end;
|