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
d223c963
Commit
d223c963
authored
May 24, 2019
by
Gaetan Carabetta
Browse files
Update Clinique_RO.sql
parent
bdbbfd8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Clinique_RO.sql
View file @
d223c963
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
listTraitement
s
,
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
Write
Preview
Markdown
is supported
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