· 7 years ago · Nov 20, 2018, 04:36 PM
1-- MySQL dump 10.13 Distrib 5.7.24, for Linux (x86_64)
2--
3-- Host: localhost Database: STUDENTS
4-- ------------------------------------------------------
5-- Server version 5.7.24-0ubuntu0.18.04.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-- Table structure for table `computer_language`
20--
21
22DROP TABLE IF EXISTS `computer_language`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `computer_language` (
26 `id_language` int(11) NOT NULL AUTO_INCREMENT,
27 `name` varchar(255) DEFAULT NULL,
28 PRIMARY KEY (`id_language`)
29) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
30/*!40101 SET character_set_client = @saved_cs_client */;
31
32--
33-- Dumping data for table `computer_language`
34--
35
36LOCK TABLES `computer_language` WRITE;
37/*!40000 ALTER TABLE `computer_language` DISABLE KEYS */;
38INSERT INTO `computer_language` VALUES (1,'PHP'),(2,'JAVASCRIPT'),(3,'JAVA');
39/*!40000 ALTER TABLE `computer_language` ENABLE KEYS */;
40UNLOCK TABLES;
41
42--
43-- Table structure for table `school`
44--
45
46DROP TABLE IF EXISTS `school`;
47/*!40101 SET @saved_cs_client = @@character_set_client */;
48/*!40101 SET character_set_client = utf8 */;
49CREATE TABLE `school` (
50 `id_school` int(11) NOT NULL AUTO_INCREMENT,
51 `town` varchar(255) DEFAULT NULL,
52 PRIMARY KEY (`id_school`)
53) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1;
54/*!40101 SET character_set_client = @saved_cs_client */;
55
56--
57-- Dumping data for table `school`
58--
59
60LOCK TABLES `school` WRITE;
61/*!40000 ALTER TABLE `school` DISABLE KEYS */;
62INSERT INTO `school` VALUES (1,'PARIS'),(2,'BORDEAUX'),(3,'LILLE');
63/*!40000 ALTER TABLE `school` ENABLE KEYS */;
64UNLOCK TABLES;
65
66--
67-- Table structure for table `student`
68--
69
70DROP TABLE IF EXISTS `student`;
71/*!40101 SET @saved_cs_client = @@character_set_client */;
72/*!40101 SET character_set_client = utf8 */;
73CREATE TABLE `student` (
74 `id_student` int(11) NOT NULL AUTO_INCREMENT,
75 `firstname` varchar(255) NOT NULL,
76 `name` varchar(255) NOT NULL,
77 `direction` varchar(255) NOT NULL,
78 `ref_langue` int(11) NOT NULL,
79 `ref_ville` int(11) NOT NULL,
80 PRIMARY KEY (`id_student`)
81) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1;
82/*!40101 SET character_set_client = @saved_cs_client */;
83
84--
85-- Dumping data for table `student`
86--
87
88LOCK TABLES `student` WRITE;
89/*!40000 ALTER TABLE `student` DISABLE KEYS */;
90INSERT INTO `student` VALUES (1,'lorie','pester','eiffel tower',1,2),(2,'internet','google','everywhere',2,1),(3,'Mario','Bros','pipe',3,2),(4,'Dr','Dre','compton',2,3),(5,'tata','toto','titi',1,1);
91/*!40000 ALTER TABLE `student` ENABLE KEYS */;
92UNLOCK TABLES;
93/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
94
95/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
96/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
97/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
98/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
99/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;