-
Notifications
You must be signed in to change notification settings - Fork 0
/
t_info.sql
235 lines (178 loc) · 12.1 KB
/
t_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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
/*
Edit by dkd
last time 2018-12-28
*/
DROP DATABASE IF EXISTS `t_info`;
create database t_info default charset=utf8;
use t_info;
CREATE TABLE account (
name varchar(20) NOT NULL,
password varchar(20) DEFAULT NULL,
PRIMARY KEY (`name`)
) default charset=utf8;
INSERT INTO account VALUES ('q112', '123123');
SELECT * FROM account;
CREATE TABLE answer (
answer_classes varchar(20) DEFAULT NULL,
answer_stu_num float(8,2) DEFAULT NULL,
answer_weeks float(8,2) DEFAULT NULL,
answer_huanjie float(8,2) DEFAULT NULL,
answer_result float(8,2) DEFAULT NULL
) default charset=utf8;
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
INSERT INTO answer VALUES ('软工文1、2班', '2.00', '0.12', '1.00', '0.25');
SELECT * FROM answer;
CREATE TABLE design (
design_course_name varchar(20) DEFAULT NULL,
design_course_classes varchar(20) DEFAULT NULL,
design_course_weeks float(8,2) DEFAULT NULL,
design_course_zhidao float(8,2) DEFAULT NULL,
design_course_week_hour float(8,2) DEFAULT NULL,
design_course_zhuanye float(8,2) DEFAULT NULL,
design_course_huanjie float(8,2) DEFAULT NULL,
design_course_result float(8,2) DEFAULT NULL
) default charset=utf8;
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('JAVA程序设计', '电商1、2班', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('C++', '电商1、2', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('C++', '电商1、2', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
INSERT INTO design VALUES ('C++', '电商1、2', '2.00', '1.20', '16.00', '1.10', '1.00', '42.24');
SELECT * FROM design;
CREATE TABLE graduate_design (
g_d_name varchar(20) DEFAULT NULL,
g_d_students float(8,2) DEFAULT NULL,
g_d_weeks float(8,2) DEFAULT NULL,
g_d_xuwshi float(8,2) DEFAULT NULL,
g_d_huanjie float(8,2) DEFAULT NULL,
g_d_result float(8,2) DEFAULT NULL
) default charset=utf8;
INSERT INTO graduate_design VALUES ('电商1、2班', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
INSERT INTO graduate_design VALUES ('17软工', '4.00', '16.00', '0.50', '1.00', '32.00');
SELECT * FROM graduate_design;
CREATE TABLE guanli (
id varchar(255) NOT NULL,
pw varchar(255) DEFAULT NULL,
PRIMARY KEY (`id`)
) default charset=utf8;
INSERT INTO guanli VALUES ('123', '12');
SELECT * FROM guanli;
CREATE TABLE info (
T_id int(11) NOT NULL,
T_name varchar(20) DEFAULT NULL,
T_gender varchar(2) DEFAULT NULL,
T_jobtitle varchar(20) DEFAULT NULL,
T_course varchar(20) DEFAULT NULL,
T_classes varchar(20) DEFAULT NULL,
T_classnum int(11) DEFAULT NULL,
T_theory float(8,2) DEFAULT NULL,
T_experimental float(8,2) DEFAULT NULL,
PRIMARY KEY (`T_id`)
) default charset=utf8;
INSERT INTO info VALUES ('1001', '张三', '男', '高级教师', 'JAVA程序设计', '电商1、2班', '2', '55.00', '24.00');
INSERT INTO info VALUES ('1002', '李四', '男', '高级教师', 'C++程序设计', '机电1、2班', '2', '52.00', '22.00');
INSERT INTO info VALUES ('1003', '李红', '女', '高级教师', '多媒体技术', '电商1、2班', '2', '52.00', '20.00');
INSERT INTO info VALUES ('1004', '王五', '男', '高级教师', 'C语言程序设计', '电商1、2班', '2', '12.00', '12.00');
INSERT INTO info VALUES ('1005', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1006', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1007', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1008', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1009', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1010', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1011', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1012', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1013', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1014', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1015', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1016', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1017', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
INSERT INTO info VALUES ('1018', '李红', '女', '高级教师', '软件工程导论', '17软工', '2', '24.00', '24.00');
SELECT * FROM info;
CREATE TABLE single (
single_course_name varchar(20) DEFAULT NULL,
single_classes varchar(20) DEFAULT NULL,
single_hour float(8,2) DEFAULT NULL
) default charset=utf8;
INSERT INTO single VALUES ('数据结构', '计科7、8、9班', '68.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
INSERT INTO single VALUES ('Java程序设计', '电商1、2班', '12.00');
SELECT * FROM single;
CREATE TABLE theory_experimental (
t_e_course varchar(20) DEFAULT NULL,
t_e_classes varchar(20) DEFAULT NULL,
t_e_xueshi float(8,2) DEFAULT NULL,
t_e_kecheng float(8,2) DEFAULT NULL,
t_e_heban float(8,2) DEFAULT NULL,
t_e_huanjie float(8,2) DEFAULT NULL,
t_e_result float(8,2) DEFAULT NULL
) default charset=utf8;
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
INSERT INTO theory_experimental VALUES ('程序设计', '17软工', '48.00', '1.00', '1.40', '1.00', '67.20');
SELECT * FROM theory_experimental;