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
Francois Mares
NF18 - Projet SCF - Groupe 5
Commits
9aec3881
Commit
9aec3881
authored
May 20, 2021
by
Clement Lucas
Browse files
Ajout contrainte UNIQUE(position, ligne) dans Arret
parent
2373d38e
Changes
1
Hide whitespace changes
Inline
Side-by-side
SQL/TABLE.sql
View file @
9aec3881
...
@@ -42,7 +42,8 @@ CREATE TABLE Arret (
...
@@ -42,7 +42,8 @@ CREATE TABLE Arret (
position
INTEGER
NOT
NULL
,
position
INTEGER
NOT
NULL
,
gare
INTEGER
REFERENCES
Gare
(
id_gare
)
NOT
NULL
,
gare
INTEGER
REFERENCES
Gare
(
id_gare
)
NOT
NULL
,
ligne
INTEGER
REFERENCES
Ligne
(
id_ligne
)
NOT
NULL
,
ligne
INTEGER
REFERENCES
Ligne
(
id_ligne
)
NOT
NULL
,
PRIMARY
KEY
(
id_arret
)
PRIMARY
KEY
(
id_arret
),
UNIQUE
(
position
,
ligne
)
);
);
---Calendrier (#jour : {lundi, mardi, mercredi, jeudi, vendredi, samedi, dimanche})
---Calendrier (#jour : {lundi, mardi, mercredi, jeudi, vendredi, samedi, dimanche})
...
...
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