Update Clinique_RO.sql

parent 0b3ff79a
......@@ -20,18 +20,6 @@ CREATE OR REPLACE TYPE listNumeros AS TABLE OF numero;
CREATE OR REPLACE TYPE listTraitements AS TABLE OF traitement;
/
CREATE OR REPLACE TABLE animal(
id_animal NUMBER NOT NULL,
id_client NUMBER NOT NULL,
nom VARCHAR(20),
poid FLOAT,
TAILLE FLOAT,
dn DATE,
traitements listTraitement NOT NULL,
PRIMARY KEY (id_animal),
FOREIGN KEY (id_client) REFERENCES client(id_client)
) NESTED TABLE traitements STORE AS l_traitements;
/
CREATE OR REPLACE TABLE client (
id_client NUMBER NOT NULL,
......@@ -55,4 +43,17 @@ CREATE OR REPLACE TABLE espece(
PRIMARY KEY(espece),
FOREIGN KEY (classeEspece) REFERENCES classeEspece(classeEspece)
);
/
CREATE OR REPLACE TABLE animal(
id_animal NUMBER NOT NULL,
id_client NUMBER NOT NULL,
nom VARCHAR(20),
poid FLOAT,
TAILLE FLOAT,
dn DATE,
traitements listTraitement NOT NULL,
PRIMARY KEY (id_animal),
FOREIGN KEY (id_client) REFERENCES client(id_client)
) NESTED TABLE traitements STORE AS l_traitements;
/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment