16 lines
434 B
SQL
16 lines
434 B
SQL
declare
|
|
column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin
|
|
execute immediate 'ALTER TABLE CAJA ADD (FECHORVENTA_H DATE)';
|
|
exception when column_exists then null;
|
|
end;
|
|
/
|
|
declare
|
|
column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin
|
|
execute immediate 'ALTER TABLE CAJA_DIVERSOS ADD (FECHORVTA_H DATE)';
|
|
exception when column_exists then null;
|
|
end;
|