declare column_exists exception; pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE FISCAL_IMPRESSORA ADD (INDGERAARQGT NUMBER(1))'; execute immediate 'UPDATE FISCAL_IMPRESSORA SET INDGERAARQGT = INDCTRL'; exception when column_exists then null; end;