29 lines
1018 B
SQL
29 lines
1018 B
SQL
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (cMunIni VARCHAR2(7))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (cMunFim VARCHAR2(7))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (UFIni VARCHAR2(2))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (UFFim VARCHAR2(2))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (nBP VARCHAR2(9))';
|
|
exception when column_exists then null;
|
|
end; |