Created
September 24, 2018 16:56
-
-
Save kuronana/b6be0358455bc73aa788e8f4cb12ad0c to your computer and use it in GitHub Desktop.
This file contains hidden or 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: sqlQuest03 | |
| -- ------------------------------------------------------ | |
| -- 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 */; | |
| -- | |
| -- Current Database: `sqlQuest03` | |
| -- | |
| CREATE DATABASE /*!32312 IF NOT EXISTS*/ `sqlQuest03` /*!40100 DEFAULT CHARACTER SET latin1 */; | |
| USE `sqlQuest03`; | |
| -- | |
| -- Table structure for table `eleves` | |
| -- | |
| DROP TABLE IF EXISTS `eleves`; | |
| /*!40101 SET @saved_cs_client = @@character_set_client */; | |
| /*!40101 SET character_set_client = utf8 */; | |
| CREATE TABLE `eleves` ( | |
| `eleve_id` int(11) NOT NULL AUTO_INCREMENT, | |
| `eleve_name` varchar(50) DEFAULT NULL, | |
| `eleve_firstname` varchar(50) DEFAULT NULL, | |
| `eleve_address` varchar(100) DEFAULT NULL, | |
| `lang_id` int(11) DEFAULT NULL, | |
| `school_id` int(11) DEFAULT NULL, | |
| PRIMARY KEY (`eleve_id`), | |
| KEY `FKlang_id` (`lang_id`), | |
| KEY `FKschool_id` (`school_id`), | |
| CONSTRAINT `FKlang_id` FOREIGN KEY (`lang_id`) REFERENCES `language` (`lang_id`), | |
| CONSTRAINT `FKschool_id` FOREIGN KEY (`school_id`) REFERENCES `school` (`school_id`) | |
| ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; | |
| /*!40101 SET character_set_client = @saved_cs_client */; | |
| -- | |
| -- Dumping data for table `eleves` | |
| -- | |
| LOCK TABLES `eleves` WRITE; | |
| /*!40000 ALTER TABLE `eleves` DISABLE KEYS */; | |
| INSERT INTO `eleves` VALUES (1,'bestFriend','Google','100 rue de partout',1,1),(2,'Kawaii','Lorie','7 rue de la licorne empailler',1,2),(3,'Oal Gown','Ainz','8 av. de la badasserie',2,1),(4,'Vi Britania','Lelouche','666 rue du hô',3,2),(5,'Vanderlicht','Chris','9 av. de la montagne doré',3,1); | |
| /*!40000 ALTER TABLE `eleves` 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` ( | |
| `lang_id` int(11) NOT NULL AUTO_INCREMENT, | |
| `lang_name` varchar(50) DEFAULT NULL, | |
| PRIMARY KEY (`lang_id`) | |
| ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; | |
| /*!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 (1,'PHP'),(2,'JavaScript'),(3,'Java'); | |
| /*!40000 ALTER TABLE `language` ENABLE KEYS */; | |
| UNLOCK TABLES; | |
| -- | |
| -- Table structure for table `school` | |
| -- | |
| DROP TABLE IF EXISTS `school`; | |
| /*!40101 SET @saved_cs_client = @@character_set_client */; | |
| /*!40101 SET character_set_client = utf8 */; | |
| CREATE TABLE `school` ( | |
| `school_id` int(11) NOT NULL AUTO_INCREMENT, | |
| `school_city` varchar(50) DEFAULT NULL, | |
| PRIMARY KEY (`school_id`) | |
| ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=latin1; | |
| /*!40101 SET character_set_client = @saved_cs_client */; | |
| -- | |
| -- Dumping data for table `school` | |
| -- | |
| LOCK TABLES `school` WRITE; | |
| /*!40000 ALTER TABLE `school` DISABLE KEYS */; | |
| INSERT INTO `school` VALUES (1,'Starling City'),(2,'Central City'); | |
| /*!40000 ALTER TABLE `school` 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-24 18:54:35 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment