Aide dans oracle

Fermé
salut - 8 déc. 2004 à 22:06
 hello - 8 déc. 2004 à 23:02
je cherche la commande pour ajouter une clé externe dans table dans oracle
merci

1 réponse

ALTER TABLE EMP ADD
(CONSTRAINT PK_EMP PRIMARY KEY (EMPNO))
/
ALTER TABLE EMP ADD
(CONSTRAINT FK_DEPTNO FOREIGN KEY (DEPTNO)
REFERENCES DEPT (DEPTNO))
/
Regards
0