[ORACLE] Création de table

Résolu/Fermé
TSniper Messages postés 778 Date d'inscription lundi 14 janvier 2008 Statut Membre Dernière intervention 15 novembre 2016 - 22 juin 2009 à 08:57
0866 Messages postés 31 Date d'inscription jeudi 11 juin 2009 Statut Membre Dernière intervention 24 mars 2010 - 22 juin 2009 à 12:59
Bonjour,
je veut créer la table:
Approvisionnement ([U]NumP#,NumU#,NumF#[/U],Quantite)
Comment faire ça??

Remarque:
NumP#,NumU#,NumF# sont les clé primaire de la table Usine, produit, Fournisseur.

S'il vous plait aidez moi.
Merci
A voir également:

1 réponse

0866 Messages postés 31 Date d'inscription jeudi 11 juin 2009 Statut Membre Dernière intervention 24 mars 2010 3
22 juin 2009 à 12:59
voici le bot du code concernant votre problème:

CREATE TABLE nom_table(

nom_clePrimaire INTEGRE Primary Key,

Num_P INTEGER,
Num_U INTEGER,
Num_F INTEGER,

CONSTRAINT fkNum_P FOREIGN KEY (Num_P) REFERENCES PRODUIT (Num_P) ,
CONSTRAINT fkNum_U FOREIGN KEY (Num_U) REFERENCES USINE (Num_U) ,
CONSTRAINT fkNum_F FOREIGN KEY (Num_F) REFERENCES FOURNISSEUR (Num_F)
);
1