Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
0b3ff79a
Commit
0b3ff79a
authored
May 23, 2019
by
Osvaldo Valdivia Salas
Browse files
Update Clinique_RO.sql
parent
ac9dae08
Changes
1
Show whitespace changes
Inline
Side-by-side
Clinique_RO.sql
View file @
0b3ff79a
...
...
@@ -20,29 +20,28 @@ CREATE OR REPLACE TYPE listNumeros AS TABLE OF numero;
CREATE
OR
REPLACE
TYPE
listTraitements
AS
TABLE
OF
traitement
;
/
CREATE
OR
REPLACE
TYPE
animal
AS
OBJECT
(
id_animal
NUMBER
,
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
,
PRIMARY
KEY
(
id_animal
)
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
TYPE
listAnimals
AS
TABLE
OF
animal
;
/
CREATE
OR
REPLACE
TABLE
client
(
id_client
NUMBER
NOT
NULL
,
nom
VARCHAR
(
20
)
NOT
NULL
,
prenom
VARCHAR
(
20
)
NOT
NULL
,
dn
DATE
NOT
NULL
,
adresse
VARCHAR
(
50
)
NOT
NULL
,
animals
listAnimals
NOT
NULL
,
numeros
listNumeros
NOT
NULL
,
PRIMARY
KEY
(
id_client
)
)
NESTED
TABLE
animals
STORE
AS
l_animals
,
NESTED
TABLE
numeros
STORE
AS
l_numeros
;
)
NESTED
TABLE
numeros
STORE
AS
l_numeros
;
/
CREATE
OR
REPLACE
TABLE
classeEspece
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment