|
declare
|
|
object_exists exception;
|
|
pragma exception_init (object_exists , -00955);
|
|
begin
|
|
execute immediate 'ALTER TABLE TAXPOL ADD CONSTRAINT TAXPOLC_FK FOREIGN KEY (TAXPOLC_ID) REFERENCES TAXPOLC( TAXPOLC_ID ) ENABLE';
|
|
exception when others then null;
|
|
end; |