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
TD_NF17_goupe4
Clinique Veterinaire
Commits
7ef5b615
Commit
7ef5b615
authored
Jun 07, 2019
by
Evenson Jeunesse
Browse files
Update SQL.sql
parent
c452ce15
Changes
1
Hide whitespace changes
Inline
Side-by-side
XML/SQL.sql
View file @
7ef5b615
...
...
@@ -12,6 +12,7 @@ FOREIGN KEY (classe) REFERENCES Classes(nom)
);
CREATE
TABLE
Clients
(
id
INTEGER
,
telephone
INTEGER
NOT
NULL
,
...
...
@@ -20,8 +21,7 @@ prenom VARCHAR(50) NOT NULL,
date_naissance
DATE
NOT
NULL
,
adresse
VARCHAR
(
255
)
NOT
NULL
,
PRIMARY
KEY
(
id
),
CHECK
(
telephone
>
100000000
AND
telephone
<
999999999
),
CHECK
(
date_naissance
BETWEEN
DATE
(
'1900-01-01'
)
AND
CURRENT_DATE
)
CHECK
(
telephone
>
100000000
AND
telephone
<
999999999
)
);
...
...
@@ -36,8 +36,7 @@ traitement XMLType,
PRIMARY
KEY
(
id
),
FOREIGN
KEY
(
espece
)
REFERENCES
Especes
(
nom
),
CHECK
(
dernierPoids
>
0
),
CHECK
(
derniereTaille
>
0
),
CHECK
(
date_naissance
>
1900
)
CHECK
(
derniereTaille
>
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