ALTER TABLE CTRLCOMPENSACAO ADD (
  NRPARAMCOMPENSACAO NUMBER(10) NOT NULL
)
/
ALTER TABLE CTRLCOMPENSACAO ADD CONSTRAINT FKFAI00623PARAMCOMPENSACAO FOREIGN KEY (NRPARAMCOMPENSACAO, NRORG) REFERENCES PARAMCOMPENSACAO (NRPARAMCOMPENSACAO, NRORG)
/
CREATE INDEX FKFAI00623PARAMCOMPENSACAO ON CTRLCOMPENSACAO (NRPARAMCOMPENSACAO)