|
declare
|
|
column_exists exception;
|
|
pragma exception_init (column_exists , -01430);
|
|
begin
|
|
execute immediate 'UPDATE ESTADO SET CODESTABELECIMENTO = NULL';
|
|
execute immediate 'ALTER TABLE ESTADO MODIFY (CODESTABELECIMENTO VARCHAR2(4))';
|
|
exception when column_exists then null;
|
|
end; |