Update Clinique_RO.sql

parent 8d5b8263
......@@ -20,7 +20,7 @@ CREATE OR REPLACE TYPE animal AS OBJECT (
dn DATE,
traitements listTraitements NOT NULL,
PRIMARY KEY (id_animal)
) NESTED TABLE listTraitement STORED AS l_traitements;
) NESTED TABLE traitements STORED AS l_traitements;
/
CREATE OR REPLACE TYPE listeAnimals AS TABLE OF animal;
/
......@@ -31,9 +31,9 @@ CREATE OR REPLACE TABLE clients (
dn DATE NOT NULL,
adresse VARCHAR(50) NOT NULL,
n_tel NUMBER NOT NULL,
animal listeAnimals NOT NULL,
animals listeAnimals NOT NULL,
PRIMARY KEY(id_client)
)NESTED TABLE listeAnimals STORED AS l_animals;
)NESTED TABLE animals STORED AS l_animals;
/
CREATE OR REPLACE TABLE classeEspece(
......
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