declare column_exists exception; pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE FORMA_PAGO ADD (TIPO_CARTEIRA_DIGITAL VARCHAR(20))'; exception when column_exists then null; end; / declare object_exists exception; pragma exception_init (object_exists , -00955); begin execute immediate 'update FORMA_PAGO set TIPO_CARTEIRA_DIGITAL = ''TROCO_SIMPLES'' where TIPO_PAGO = 12 and TIPO_CARTEIRA_DIGITAL is null'; exception when object_exists then null; end;