Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
projet_nf17_p19_tdg1_groupe2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gaetan Carabetta
projet_nf17_p19_tdg1_groupe2
Commits
29b64245
Commit
29b64245
authored
Jun 06, 2019
by
Osvaldo Valdivia Salas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
bfa81ae5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
sql/cliniqueXML.sql
sql/cliniqueXML.sql
+38
-0
No files found.
sql/cliniqueXML.sql
0 → 100644
View file @
29b64245
CREATE
TABLE
Client
(
idClient
INT
NOT
NULL
,
nom
VARCHAR
(
30
)
NOT
NULL
,
prenom
VARCHAR
(
30
)
NOT
NULL
,
ddn
DATE
NOT
NULL
,
adresse
VARCHAR
(
100
)
NOT
NULL
,
numero
INT
NOT
NULL
,
PRIMARY
KEY
(
idClient
),
CHECK
(
numero
>=
0100000000
AND
numero
<=
0799999999
)
);
CREATE
TABLE
classeEspece
(
classeEspece
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
classeEspece
)
);
CREATE
TABLE
Espece
(
classe
VARCHAR
(
30
)
NOT
NULL
,
nomEspece
VARCHAR
(
30
)
NOT
NULL
,
PRIMARY
KEY
(
nomEspece
)
);
CREATE
TABLE
Animal
(
idAnimal
INT
NOT
NULL
,
nom
VARCHAR
(
30
)
NOT
NULL
,
poids
REAL
NOT
NULL
,
taille
REAL
NOT
NULL
,
naissance
DATE
,
traitements
XMLTYPE
,
idClient
INT
NOT
NULL
,
especeNom
VARCHAR
(
30
),
PRIMARY
KEY
(
idAnimal
),
FOREIGN
KEY
(
idClient
)
REFERENCES
Client
(
idClient
),
FOREIGN
KEY
(
especeNom
)
REFERENCES
Espece
(
nomEspece
),
CHECK
(
POIDS
>
0
),
CHECK
(
TAILLE
>
0
)
);
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