Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bonaert_f_wcs_bruxelles2.sql
-- MySQL dump 10.13 Distrib 5.7.23, for osx10.9 (x86_64)
--
-- Host: localhost Database: sql3
-- ------------------------------------------------------
-- Server version 5.7.23
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Current Database: `sql3`
--
CREATE DATABASE /*!32312 IF NOT EXISTS*/ `sql3` /*!40100 DEFAULT CHARACTER SET utf8 */;
USE `sql3`;
--
-- Table structure for table `ecole`
--
DROP TABLE IF EXISTS `ecole`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `ecole` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`city` varchar(90) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `city` (`city`)
) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `ecole`
--
LOCK TABLES `ecole` WRITE;
/*!40000 ALTER TABLE `ecole` DISABLE KEYS */;
INSERT INTO `ecole` VALUES (1,'belgium'),(2,'usa');
/*!40000 ALTER TABLE `ecole` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `eleve`
--
DROP TABLE IF EXISTS `eleve`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `eleve` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(90) DEFAULT NULL,
`firstname` varchar(90) DEFAULT NULL,
`adress` varchar(90) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `eleve`
--
LOCK TABLES `eleve` WRITE;
/*!40000 ALTER TABLE `eleve` DISABLE KEYS */;
INSERT INTO `eleve` VALUES (1,'bonaert','felix','belgium'),(2,'bonaert','celestine','belgium'),(3,'lambert','thomas','belgium'),(4,'google','google','usa'),(5,'lorie','lorie','usa');
/*!40000 ALTER TABLE `eleve` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `eleve_ecole`
--
DROP TABLE IF EXISTS `eleve_ecole`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `eleve_ecole` (
`eleve_id` varchar(90) DEFAULT NULL,
`ecole_id` varchar(90) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `eleve_ecole`
--
LOCK TABLES `eleve_ecole` WRITE;
/*!40000 ALTER TABLE `eleve_ecole` DISABLE KEYS */;
INSERT INTO `eleve_ecole` VALUES ('1','1'),('2','1'),('3','1'),('4','2'),('5','2');
/*!40000 ALTER TABLE `eleve_ecole` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `eleve_language`
--
DROP TABLE IF EXISTS `eleve_language`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `eleve_language` (
`eleve_id` varchar(90) DEFAULT NULL,
`language_id` varchar(90) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `eleve_language`
--
LOCK TABLES `eleve_language` WRITE;
/*!40000 ALTER TABLE `eleve_language` DISABLE KEYS */;
INSERT INTO `eleve_language` VALUES ('1','1'),('2','1'),('3','2'),('4','3'),('5','3');
/*!40000 ALTER TABLE `eleve_language` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `language`
--
DROP TABLE IF EXISTS `language`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `language` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(90) DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `language`
--
LOCK TABLES `language` WRITE;
/*!40000 ALTER TABLE `language` DISABLE KEYS */;
INSERT INTO `language` VALUES (3,'Java'),(2,'JS'),(1,'PHP');
/*!40000 ALTER TABLE `language` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
-- Dump completed on 2019-01-08 18:33:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment