Commit d223c963 authored by Gaetan Carabetta's avatar Gaetan Carabetta

Update Clinique_RO.sql

parent bdbbfd8d
drop table animal;
drop table espece;
drop table client;
drop type listTraitements;
drop type listNumeros;
drop type traitement;
CREATE TYPE traitement AS OBJECT (
id_traitement NUMBER,
debut DATE,
......@@ -22,7 +29,7 @@ CREATE TABLE client (
prenom VARCHAR(20) NOT NULL,
dn DATE NOT NULL,
adresse VARCHAR(50) NOT NULL,
numeros listNumeros NOT NULL,
numeros listNumeros,
PRIMARY KEY(id_client)
)NESTED TABLE numeros STORE AS l_numeros;
/
......@@ -42,9 +49,9 @@ CREATE TABLE animal(
poid FLOAT,
TAILLE FLOAT,
dn DATE,
traitements listTraitement NOT NULL,
traitements listTraitements,
PRIMARY KEY (id_animal),
FOREIGN KEY (id_client) REFERENCES client(id_client),
FOREIGN KEY (espece) REFERENCES espece(espece)
) 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