declare column_exists exception; pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE BPE ADD (EMPRESA_ID NUMBER(7))'; exception when column_exists then null; end;