Commit d223c963 authored by Gaetan Carabetta's avatar Gaetan Carabetta
Browse files

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