· 8 years ago · Mar 23, 2018, 06:16 PM
1-- MySQL dump 10.16 Distrib 10.1.13-MariaDB, for Win32 (AMD64)
2--
3-- Host: localhost Database: tanulas
4-- ------------------------------------------------------
5-- Server version 10.1.13-MariaDB
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 `diak`
20--
21
22DROP TABLE IF EXISTS `diak`;
23/*!40101 SET @saved_cs_client = @@character_set_client */;
24/*!40101 SET character_set_client = utf8 */;
25CREATE TABLE `diak` (
26 `oktazon` char(9) NOT NULL,
27 `nev` varchar(40) DEFAULT NULL,
28 `osztaly` enum('A','B','C','D') DEFAULT NULL,
29 `evfolyam` tinyint(4) DEFAULT NULL,
30 PRIMARY KEY (`oktazon`)
31) ENGINE=InnoDB DEFAULT CHARSET=latin1;
32/*!40101 SET character_set_client = @saved_cs_client */;
33
34--
35-- Dumping data for table `diak`
36--
37
38LOCK TABLES `diak` WRITE;
39/*!40000 ALTER TABLE `diak` DISABLE KEYS */;
40/*!40000 ALTER TABLE `diak` ENABLE KEYS */;
41UNLOCK TABLES;
42
43--
44-- Table structure for table `tantargy`
45--
46
47DROP TABLE IF EXISTS `tantargy`;
48/*!40101 SET @saved_cs_client = @@character_set_client */;
49/*!40101 SET character_set_client = utf8 */;
50CREATE TABLE `tantargy` (
51 `tannev` varchar(30) DEFAULT NULL,
52 `tanazon` smallint(6) NOT NULL AUTO_INCREMENT,
53 `tipus` enum('humán','reál','szakmai') DEFAULT NULL,
54 PRIMARY KEY (`tanazon`)
55) ENGINE=InnoDB DEFAULT CHARSET=latin1;
56/*!40101 SET character_set_client = @saved_cs_client */;
57
58--
59-- Dumping data for table `tantargy`
60--
61
62LOCK TABLES `tantargy` WRITE;
63/*!40000 ALTER TABLE `tantargy` DISABLE KEYS */;
64/*!40000 ALTER TABLE `tantargy` ENABLE KEYS */;
65UNLOCK TABLES;
66
67--
68-- Table structure for table `tanul`
69--
70
71DROP TABLE IF EXISTS `tanul`;
72/*!40101 SET @saved_cs_client = @@character_set_client */;
73/*!40101 SET character_set_client = utf8 */;
74CREATE TABLE `tanul` (
75 `oktazon` char(9) NOT NULL,
76 `tanazon` smallint(6) NOT NULL,
77 `oraszam` tinyint(4) DEFAULT NULL,
78 `tanev` smallint(6) NOT NULL,
79 PRIMARY KEY (`oktazon`,`tanazon`,`tanev`),
80 KEY `tanazon` (`tanazon`),
81 CONSTRAINT `tanul_ibfk_1` FOREIGN KEY (`oktazon`) REFERENCES `diak` (`oktazon`),
82 CONSTRAINT `tanul_ibfk_2` FOREIGN KEY (`tanazon`) REFERENCES `tantargy` (`tanazon`)
83) ENGINE=InnoDB DEFAULT CHARSET=latin1;
84/*!40101 SET character_set_client = @saved_cs_client */;
85
86--
87-- Dumping data for table `tanul`
88--
89
90LOCK TABLES `tanul` WRITE;
91/*!40000 ALTER TABLE `tanul` DISABLE KEYS */;
92/*!40000 ALTER TABLE `tanul` ENABLE KEYS */;
93UNLOCK TABLES;
94/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
95
96/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
97/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
98/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
99/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
100/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
101/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
102/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
103
104-- Dump completed on 2018-03-23 19:19:11