· 7 years ago · Nov 30, 2018, 05:02 PM
1-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
2--
3-- Host: localhost Database: relation
4-- ------------------------------------------------------
5-- Server version 5.7.24-0ubuntu0.18.10.1
6
7/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
8/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
9/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
10/*!40101 SET NAMES utf8 */;
11/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
12/*!40103 SET TIME_ZONE='+00:00' */;
13/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
14/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
15/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
16/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
17
18--
19-- Current Database: `relation`
20--
21
22CREATE DATABASE /*!32312 IF NOT EXISTS*/ `relation` /*!40100 DEFAULT CHARACTER SET latin1 */;
23
24USE `relation`;
25
26--
27-- Table structure for table `ecole`
28--
29
30DROP TABLE IF EXISTS `ecole`;
31/*!40101 SET @saved_cs_client = @@character_set_client */;
32/*!40101 SET character_set_client = utf8 */;
33CREATE TABLE `ecole` (
34 `id` int(11) NOT NULL AUTO_INCREMENT,
35 `ville` varchar(255) DEFAULT NULL,
36 PRIMARY KEY (`id`)
37) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
38/*!40101 SET character_set_client = @saved_cs_client */;
39
40--
41-- Dumping data for table `ecole`
42--
43
44LOCK TABLES `ecole` WRITE;
45/*!40000 ALTER TABLE `ecole` DISABLE KEYS */;
46INSERT INTO `ecole` VALUES (1,'Bordeaux'),(2,'Toulouse'),(3,'Paris');
47/*!40000 ALTER TABLE `ecole` ENABLE KEYS */;
48UNLOCK TABLES;
49
50--
51-- Table structure for table `eleve`
52--
53
54DROP TABLE IF EXISTS `eleve`;
55/*!40101 SET @saved_cs_client = @@character_set_client */;
56/*!40101 SET character_set_client = utf8 */;
57CREATE TABLE `eleve` (
58 `id` int(11) NOT NULL AUTO_INCREMENT,
59 `firstname` varchar(255) DEFAULT NULL,
60 `lastname` varchar(255) DEFAULT NULL,
61 `langageid` int(11) DEFAULT NULL,
62 `ecoleid` int(11) DEFAULT NULL,
63 PRIMARY KEY (`id`)
64) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
65/*!40101 SET character_set_client = @saved_cs_client */;
66
67--
68-- Dumping data for table `eleve`
69--
70
71LOCK TABLES `eleve` WRITE;
72/*!40000 ALTER TABLE `eleve` DISABLE KEYS */;
73INSERT INTO `eleve` VALUES (1,'google','image',1,2),(2,'Laurie','gami',1,1),(3,'Sarah','Connor',2,3),(4,'Eric','Zemmour',2,2),(5,'Philipe','Jesaisoututecache',3,2);
74/*!40000 ALTER TABLE `eleve` ENABLE KEYS */;
75UNLOCK TABLES;
76
77--
78-- Table structure for table `langage`
79--
80
81DROP TABLE IF EXISTS `langage`;
82/*!40101 SET @saved_cs_client = @@character_set_client */;
83/*!40101 SET character_set_client = utf8 */;
84CREATE TABLE `langage` (
85 `id` int(11) NOT NULL AUTO_INCREMENT,
86 `name` varchar(255) DEFAULT NULL,
87 PRIMARY KEY (`id`)
88) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
89/*!40101 SET character_set_client = @saved_cs_client */;
90
91--
92-- Dumping data for table `langage`
93--
94
95LOCK TABLES `langage` WRITE;
96/*!40000 ALTER TABLE `langage` DISABLE KEYS */;
97INSERT INTO `langage` VALUES (1,'PHP'),(2,'Java'),(3,'JavaScript');
98/*!40000 ALTER TABLE `langage` ENABLE KEYS */;
99UNLOCK TABLES;
100/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
101
102/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
103/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
104/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
105/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
106/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
107/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
108/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
109
110-- Dump completed on 2018-11-30 14:35:55