Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
GUILLOTIN
php_loto
Commits
dd451ae2
Commit
dd451ae2
authored
5 years ago
by
GUILLOTIN
Browse files
Options
Download
Patches
Plain Diff
base de donnée
parent
7d4d60e6
master
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BDD.sql
+74
-0
BDD.sql
with
74 additions
and
0 deletions
+74
-0
BDD.sql
0 → 100644
+
74
−
0
View file @
dd451ae2
-- --------------------------------------------------------
-- Hôte : localhost
-- Version du serveur: 5.7.24 - MySQL Community Server (GPL)
-- SE du serveur: Win64
-- HeidiSQL Version: 10.2.0.5599
-- --------------------------------------------------------
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */
;
/*!40101 SET NAMES utf8 */
;
/*!50503 SET NAMES utf8mb4 */
;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */
;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */
;
-- Listage de la structure de la base pour loto_sportif
CREATE
DATABASE
IF
NOT
EXISTS
`loto_sportif`
/*!40100 DEFAULT CHARACTER SET latin1 */
;
USE
`loto_sportif`
;
-- Listage de la structure de la table loto_sportif. equipes
CREATE
TABLE
IF
NOT
EXISTS
`equipes`
(
`EquipeID`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`NomEquipe`
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`EquipeID`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
7
DEFAULT
CHARSET
=
latin1
;
-- Listage des données de la table loto_sportif.equipes : ~6 rows (environ)
/*!40000 ALTER TABLE `equipes` DISABLE KEYS */
;
INSERT
INTO
`equipes`
(
`EquipeID`
,
`NomEquipe`
)
VALUES
(
1
,
'FC Paris'
),
(
2
,
'FC Lyon'
),
(
3
,
'FC Toulouse'
),
(
4
,
'FC Nantes'
),
(
5
,
'FC Dijon'
),
(
6
,
'FC Bayonne'
);
/*!40000 ALTER TABLE `equipes` ENABLE KEYS */
;
-- Listage de la structure de la table loto_sportif. matchs
CREATE
TABLE
IF
NOT
EXISTS
`matchs`
(
`MatchID`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`Equipe1`
int
(
11
)
DEFAULT
NULL
,
`Equipe2`
int
(
11
)
DEFAULT
NULL
,
`DateMatch`
date
DEFAULT
NULL
,
`Resultat`
varchar
(
255
)
DEFAULT
'Resultat à venir'
,
PRIMARY
KEY
(
`MatchID`
),
KEY
`FK_matchs_equipes`
(
`Equipe1`
),
KEY
`FK_matchs_equipes_2`
(
`Equipe2`
),
CONSTRAINT
`FK_matchs_equipes`
FOREIGN
KEY
(
`Equipe1`
)
REFERENCES
`equipes`
(
`EquipeID`
),
CONSTRAINT
`FK_matchs_equipes_2`
FOREIGN
KEY
(
`Equipe2`
)
REFERENCES
`equipes`
(
`EquipeID`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
15
DEFAULT
CHARSET
=
latin1
;
-- Listage des données de la table loto_sportif.matchs : ~2 rows (environ)
/*!40000 ALTER TABLE `matchs` DISABLE KEYS */
;
INSERT
INTO
`matchs`
(
`MatchID`
,
`Equipe1`
,
`Equipe2`
,
`DateMatch`
,
`Resultat`
)
VALUES
(
1
,
1
,
2
,
'2020-05-03'
,
'2'
),
(
2
,
2
,
4
,
'2020-05-04'
,
'2'
);
/*!40000 ALTER TABLE `matchs` ENABLE KEYS */
;
-- Listage de la structure de la table loto_sportif. membres
CREATE
TABLE
IF
NOT
EXISTS
`membres`
(
`ID`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`Nom`
varchar
(
255
)
DEFAULT
NULL
,
`Prenom`
varchar
(
255
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`ID`
)
)
ENGINE
=
InnoDB
AUTO_INCREMENT
=
2
DEFAULT
CHARSET
=
latin1
;
-- Listage des données de la table loto_sportif.membres : ~0 rows (environ)
/*!40000 ALTER TABLE `membres` DISABLE KEYS */
;
INSERT
INTO
`membres`
(
`ID`
,
`Nom`
,
`Prenom`
)
VALUES
(
1
,
'arnaud'
,
'arnaud'
);
/*!40000 ALTER TABLE `membres` ENABLE KEYS */
;
/*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */
;
/*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */
;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */
;
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets