ALTER TABLE PERCDETPRODFILGOP ADD CONSTRAINT FKGOP00676PERCITDETALFILGOP FOREIGN KEY (NRPERCITDETALFILGOP) REFERENCES PERCITDETALFILGOP (NRPERCITDETALFILGOP) ON DELETE CASCADE
/
ALTER TABLE PERCDETPRODFILGOP ADD CONSTRAINT FKGOP00677FILIAL FOREIGN KEY (CDFILIAL) REFERENCES FILIAL (CDFILIAL)
/
ALTER TABLE PERCDETPRODFILGOP ADD CONSTRAINT FKGOP00678PRODUTO FOREIGN KEY (CDPRODUTO) REFERENCES PRODUTO (CDPRODUTO)
/
ALTER TABLE PERCDETPRODFILGOP ADD CONSTRAINT FKGOP00679DESPORCAMO FOREIGN KEY (CDORCAMENTOMO, CDFILIALMO, CDDESPADMFAT) REFERENCES DESPORCAMO (CDORCAMENTOMO, CDFILIAL, CDDESPADMFAT)
/
ALTER TABLE PERCDETPRODFILGOP ADD CONSTRAINT FKGOP00680TIPOOPERAC FOREIGN KEY (CDTIPOOPER, IDENTRSAIDOP) REFERENCES TIPOOPERAC (CDTIPOOPER, IDENTRSAIDOP)