更新 mysql.sql
parent
e14688471a
commit
ff030444e4
10
mysql.sql
10
mysql.sql
|
|
@ -178,11 +178,11 @@ CREATE TABLE teacher
|
||||||
FOREIGN KEY (user_id) REFERENCES user (user_id)
|
FOREIGN KEY (user_id) REFERENCES user (user_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO teacher (name, user_id)
|
INSERT INTO teacher (name, user_id,teacher_number)
|
||||||
VALUES ('教师1', 1),
|
VALUES ('教师1', 1,'G0001'),
|
||||||
('教师2', 2),
|
('教师2', 2,'G0002'),
|
||||||
('教师3', 3),
|
('教师3', 3,'G0003'),
|
||||||
('教师4', 4);
|
('教师4', 4,'G0004');
|
||||||
|
|
||||||
CREATE TABLE major_course
|
CREATE TABLE major_course
|
||||||
(
|
(
|
||||||
|
|
|
||||||
Reference in New Issue