Created
September 26, 2018 15:11
-
-
Save vigi3/dea1af081a76eb816518ccf443b7a265 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.7.23, for Linux (x86_64) | |
-- | |
-- Host: localhost Database: mydb | |
-- ------------------------------------------------------ | |
-- Server version 5.7.23-0ubuntu0.18.04.1 | |
/*!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 */; | |
-- | |
-- 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` ( | |
`idEcole` int(11) NOT NULL AUTO_INCREMENT, | |
`Ecole` varchar(45) DEFAULT NULL, | |
PRIMARY KEY (`idEcole`) | |
) ENGINE=InnoDB AUTO_INCREMENT=4 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,'orleans'),(2,'bordeaux'),(3,'toulouse'); | |
/*!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(45) DEFAULT NULL, | |
`firstname` varchar(45) DEFAULT NULL, | |
`adress` varchar(45) DEFAULT NULL, | |
`Languages_idLanguages` int(11) NOT NULL, | |
`Ecole_idEcole` int(11) NOT NULL, | |
PRIMARY KEY (`id`,`Languages_idLanguages`,`Ecole_idEcole`), | |
KEY `fk_Eleve_Languages1_idx` (`Languages_idLanguages`), | |
KEY `fk_Eleve_Ecole1_idx` (`Ecole_idEcole`), | |
CONSTRAINT `fk_Eleve_Ecole1` FOREIGN KEY (`Ecole_idEcole`) REFERENCES `Ecole` (`idEcole`) ON DELETE NO ACTION ON UPDATE NO ACTION, | |
CONSTRAINT `fk_Eleve_Languages1` FOREIGN KEY (`Languages_idLanguages`) REFERENCES `Languages` (`idLanguages`) ON DELETE NO ACTION ON UPDATE NO ACTION | |
) ENGINE=InnoDB AUTO_INCREMENT=7 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 (2,'google',NULL,NULL,1,1),(3,'laurie',NULL,NULL,1,2),(4,'vador',NULL,NULL,2,3),(5,'vince',NULL,NULL,3,1),(6,'thanos',NULL,NULL,3,2); | |
/*!40000 ALTER TABLE `Eleve` ENABLE KEYS */; | |
UNLOCK TABLES; | |
-- | |
-- Table structure for table `Languages` | |
-- | |
DROP TABLE IF EXISTS `Languages`; | |
/*!40101 SET @saved_cs_client = @@character_set_client */; | |
/*!40101 SET character_set_client = utf8 */; | |
CREATE TABLE `Languages` ( | |
`idLanguages` int(11) NOT NULL AUTO_INCREMENT, | |
`Languages` varchar(45) DEFAULT NULL, | |
PRIMARY KEY (`idLanguages`) | |
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8; | |
/*!40101 SET character_set_client = @saved_cs_client */; | |
-- | |
-- Dumping data for table `Languages` | |
-- | |
LOCK TABLES `Languages` WRITE; | |
/*!40000 ALTER TABLE `Languages` DISABLE KEYS */; | |
INSERT INTO `Languages` VALUES (1,'php'),(2,'javascript'),(3,'java'); | |
/*!40000 ALTER TABLE `Languages` 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 */; | |
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; | |
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; | |
-- Dump completed on 2018-09-26 17:11:02 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment