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
28b132b1
Commit
28b132b1
authored
May 19, 2021
by
Clement Lucas
Browse files
Modification attribut paiement
parent
f2b1e52c
Changes
1
Hide whitespace changes
Inline
Side-by-side
SQL/DATA.sql
View file @
28b132b1
...
@@ -40,11 +40,11 @@ INSERT INTO Horaires(id_horaires, id_train, depart, arrivee, arret, date_horaire
...
@@ -40,11 +40,11 @@ INSERT INTO Horaires(id_horaires, id_train, depart, arrivee, arret, date_horaire
---Voyageur(#id_voyageur: int, nom: varchar, prenom: varchar, adresse: varchar,
---Voyageur(#id_voyageur: int, nom: varchar, prenom: varchar, adresse: varchar,
--- tel: longint, paiement: {carte, espèce, chèque}, id_carte: integer,
--- tel: longint, paiement: {carte, espèce, chèque}, id_carte: integer,
--- status: {voyageur, grand, plus}, type: {occasionnel, régulier});
--- status: {voyageur, grand, plus}, type: {occasionnel, régulier});
INSERT
INTO
Voyageur
(
id_voyageur
,
nom
,
prenom
,
adresse
,
tel
,
paiement
,
id_carte
,
status_voyageur
,
type_voyageur
)
INSERT
INTO
Voyageur
(
id_voyageur
,
nom
,
prenom
,
adresse
,
tel
,
id_carte
,
status_voyageur
,
type_voyageur
)
VALUES
(
0
,
'TONTON'
,
'Tintin'
,
'60200 Compiègne'
,
0712344556
,
'espèce'
,
NULL
,
NULL
,
'occasionnel'
);
VALUES
(
0
,
'TONTON'
,
'Tintin'
,
'60200 Compiègne'
,
0712344556
,
NULL
,
NULL
,
'occasionnel'
);
---Billet(#id_billet: int, prix : reel, assurance : bool, id_voyageur=>Voyageur) ;
---Billet(#id_billet: int, prix : reel, assurance : bool, id_voyageur=>Voyageur) ;
INSERT
INTO
Billet
(
prix
,
assurance
,
id_voyageur
)
VALUES
(
15
.
5
,
false
,
0
);
INSERT
INTO
Billet
(
prix
,
paiement
,
assurance
,
id_voyageur
)
VALUES
(
15
.
5
,
'espèce'
,
false
,
0
);
---Trajet (#id_trajet : int, #id_billet=>Billet, numéro_place :integer, durée: heure,
---Trajet (#id_trajet : int, #id_billet=>Billet, numéro_place :integer, durée: heure,
--- horaire_départ=>Horaires, horaire_arrivée=>Horaires);
--- horaire_départ=>Horaires, horaire_arrivée=>Horaires);
...
...
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