forked from OrangeTien/Student_Info_GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student_Info.sql
99 lines (84 loc) · 4.09 KB
/
Student_Info.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-- MySQL dump 10.13 Distrib 8.0.23, for macos10.15 (x86_64)
--
-- Host: localhost Database: Student_Info
-- ------------------------------------------------------
-- Server version 8.0.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 */;
/*!50503 SET NAMES utf8mb4 */;
/*!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 `course`
--
DROP TABLE IF EXISTS `course`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `course` (
`cid` varchar(20) NOT NULL,
`cname` varchar(40) DEFAULT NULL,
PRIMARY KEY (`cid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `course`
--
LOCK TABLES `course` WRITE;
/*!40000 ALTER TABLE `course` DISABLE KEYS */;
INSERT INTO `course` VALUES ('103','103'),('111','111'),('123','baby'),('222','222'),('22222','22222'),('2223','2223'),('22331','22331'),('393i93','393i93'),('857','857'),('abc','abc'),('CHA009','CHA009'),('CS002','OOP'),('database001','database001'),('defefefwe','defefefwe'),('ENG004','English4'),('Eng008','Eng008'),('JDJ','JDJ'),('MATH','MATH'),('MATH001','calculus1'),('MAtyh11','MAtyh11'),('ssscdvfv','ssscdvfv'),('t123','t123'),('uhhuhu','uhhuhu');
/*!40000 ALTER TABLE `course` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `grade`
--
DROP TABLE IF EXISTS `grade`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `grade` (
`sid` varchar(30) NOT NULL,
`cid` varchar(20) NOT NULL,
`score` int DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `grade`
--
LOCK TABLES `grade` WRITE;
/*!40000 ALTER TABLE `grade` DISABLE KEYS */;
INSERT INTO `grade` VALUES ('1909853A-I011-0011','MATH001',73),('1909853A-I011-0011','ENG004',70),('1909853A-I011-0011','CS002',75),('1909853B-I011-0022','MATH001',55),('1909853B-I011-0022','ENG004',95),('1909853B-I011-0022','CS002',79),('1909853T-I011-0077','MATH001',81),('1909853T-I011-0077','ENG004',84),('1909853T-I011-0077','CS002',72),('1909853J-I011-0033','MATH001',87),('1909853J-I011-0033','ENG004',51),('1909853J-I011-0033','CS002',89),('1909','857',50),('1909853M-I011-0033','MATH001',90),('1909853T-test-3','database001',66);
/*!40000 ALTER TABLE `grade` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `student`
--
DROP TABLE IF EXISTS `student`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!50503 SET character_set_client = utf8mb4 */;
CREATE TABLE `student` (
`sid` varchar(30) NOT NULL,
`sname` varchar(20) DEFAULT NULL,
PRIMARY KEY (`sid`)
) ENGINE=InnoDB 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 ('1909853A-I011-0011','andrew'),('1909853B-I011-0022','bench'),('1909853J-I011-0033','jakcy'),('1909853M-I011-0033','alger'),('1909853T-I011-0077','tony'),('1909853T-test-3','idji');
/*!40000 ALTER TABLE `student` 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 2021-05-05 14:35:02