|
@@ -0,0 +1,100 @@
|
|
|
+-- MySQL dump 10.13 Distrib 5.7.13, for Win32 (AMD64)
|
|
|
+--
|
|
|
+-- Host: localhost Database: mvc_student
|
|
|
+-- ------------------------------------------------------
|
|
|
+-- Server version 5.7.13
|
|
|
+
|
|
|
+/*!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 `languages`
|
|
|
+--
|
|
|
+
|
|
|
+DROP TABLE IF EXISTS `languages`;
|
|
|
+/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
+/*!40101 SET character_set_client = utf8 */;
|
|
|
+CREATE TABLE `languages` (
|
|
|
+ `id` int(6) NOT NULL AUTO_INCREMENT,
|
|
|
+ `name` varchar(30) NOT NULL DEFAULT ' ',
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=8 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,'Java'),(3,'Python'),(4,'C++'),(5,'Ruby'),(6,'JavaScript'),(7,'Swift');
|
|
|
+/*!40000 ALTER TABLE `languages` ENABLE KEYS */;
|
|
|
+UNLOCK TABLES;
|
|
|
+
|
|
|
+--
|
|
|
+-- Table structure for table `student`
|
|
|
+--
|
|
|
+
|
|
|
+DROP TABLE IF EXISTS `student`;
|
|
|
+/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
+/*!40101 SET character_set_client = utf8 */;
|
|
|
+CREATE TABLE `student` (
|
|
|
+ `id` int(6) unsigned NOT NULL AUTO_INCREMENT,
|
|
|
+ `firstname` varchar(30) NOT NULL,
|
|
|
+ `lastname` varchar(30) NOT NULL,
|
|
|
+ `class` varchar(50) DEFAULT NULL,
|
|
|
+ PRIMARY KEY (`id`)
|
|
|
+) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
|
|
|
+/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
+
|
|
|
+--
|
|
|
+-- Dumping data for table `student`
|
|
|
+--
|
|
|
+
|
|
|
+LOCK TABLES `student` WRITE;
|
|
|
+/*!40000 ALTER TABLE `student` DISABLE KEYS */;
|
|
|
+INSERT INTO `student` VALUES (1,'Абдула','Серофимов','5A'),(2,'Вася','Профессоров','6B'),(3,'Антонина','Негрова','7A'),(4,'Галина','Бланка','11C'),(5,'Николай','Арнольдов','8B');
|
|
|
+/*!40000 ALTER TABLE `student` ENABLE KEYS */;
|
|
|
+UNLOCK TABLES;
|
|
|
+
|
|
|
+--
|
|
|
+-- Table structure for table `student_languages`
|
|
|
+--
|
|
|
+
|
|
|
+DROP TABLE IF EXISTS `student_languages`;
|
|
|
+/*!40101 SET @saved_cs_client = @@character_set_client */;
|
|
|
+/*!40101 SET character_set_client = utf8 */;
|
|
|
+CREATE TABLE `student_languages` (
|
|
|
+ `student_id` int(11) NOT NULL,
|
|
|
+ `languages_id` int(11) NOT NULL
|
|
|
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
|
|
+/*!40101 SET character_set_client = @saved_cs_client */;
|
|
|
+
|
|
|
+--
|
|
|
+-- Dumping data for table `student_languages`
|
|
|
+--
|
|
|
+
|
|
|
+LOCK TABLES `student_languages` WRITE;
|
|
|
+/*!40000 ALTER TABLE `student_languages` DISABLE KEYS */;
|
|
|
+INSERT INTO `student_languages` VALUES (1,1),(1,3),(1,6),(2,2),(2,6),(2,7),(3,1),(3,2),(3,5),(3,7),(4,3),(4,4),(4,6),(5,1),(5,2),(5,3),(5,4),(5,7);
|
|
|
+/*!40000 ALTER TABLE `student_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-01-15 12:03:34
|