29 lines
1.0 KiB
SQL
29 lines
1.0 KiB
SQL
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (vBC20 VARCHAR2(15))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (pICMS20 VARCHAR2(5))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (vICMS20 VARCHAR2(15))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (vBP VARCHAR2(15))';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin execute immediate 'ALTER TABLE BPE ADD (vDesconto VARCHAR2(15))';
|
|
exception when column_exists then null;
|
|
end; |