** 目标 **:
今天,是第一天的实训,总共有两个任务,1.完成学生管理系统的思维导图,2.建立所需要的数据库和表。总体来说比较简单,只需要照着老师的博文做就可以了
首先创建的是数据库student,然后在数据库建立四个表,分别是t_college,t_status,t_student,t_user。
(1)t_college表:
INSERT INTO t_student
VALUES (‘19204091’, ‘黄运’, ‘男’, 18, ‘2019计应1班’, ‘信息工程学院’, ‘17318654033’);
INSERT INTO t_student
VALUES (‘19204188’, ‘张航’, ‘男’, 19, ‘2019计应3班’, ‘信息工程学院’, ‘15808230272’);
INSERT INTO t_student
VALUES (‘19204189’, ‘黄晓辉’, ‘男’, 17, ‘2019计应2班’, ‘信息工程学院’, ‘15182614160’);
INSERT INTO t_student
VALUES (‘19204193’, ‘周天宇’, ‘男’, 18, ‘2019计应3班’, ‘信息工程学院’, ‘15281314950’);
INSERT INTO t_student
VALUES (‘19204196’, ‘吴霜龙’, ‘男’, 18, ‘2019计应5班’, ‘信息工程学院’, ‘15283002142’);
INSERT INTO t_student
VALUES (‘19204204’, ‘雷庭浩’, ‘男’, 19, ‘2019计应4班’, ‘信息工程学院’, ‘18584193725’);
INSERT INTO t_student
VALUES (‘19204205’, ‘赖晓桐’, ‘女’, 19, ‘2019计应3班’, ‘信息工程学院’, ‘15828814625’);
INSERT INTO t_student
VALUES (‘19204207’, ‘杜雨露’, ‘女’, 19, ‘2019英教1班’, ‘国际学院’, ‘18716175667’);
INSERT INTO t_student
VALUES (‘19204212’, ‘魏先知’, ‘男’, 18, ‘2019英教2班’, ‘国际学院’, ‘15228935822’);
INSERT INTO t_student
VALUES (‘19204219’, ‘舒彬’, ‘男’, 20, ‘2019英教3班’, ‘国际学院’, ‘18383036430’);
INSERT INTO t_student
VALUES (‘19204221’, ‘李玉山’, ‘男’, 22, ‘2019英教2班’, ‘国际学院’, ‘15908362754’);
INSERT INTO t_student
VALUES (‘19204225’, ‘严贵川’, ‘男’, 18, ‘2019英教1班’, ‘国际学院’, ‘17360565517’);
INSERT INTO t_student
VALUES (‘19204233’, ‘林正川’, ‘男’, 18, ‘2019小教1班’, ‘人文学院’, ‘18715895290’);
INSERT INTO t_student
VALUES (‘19204234’, ‘陈桐’, ‘男’, 18, ‘2019小教2班’, ‘人文学院’, ‘15108181750’);
INSERT INTO t_student
VALUES (‘19204236’, ‘王川’, ‘男’, 17, ‘2019小教3班’, ‘人文学院’, ‘15328400375’);
INSERT INTO t_student
VALUES (‘19204237’, ‘吴梦英’, ‘女’, 19, ‘2019小教3班’, ‘人文学院’, ‘18048681302’);
INSERT INTO t_student
VALUES (‘19204269’, ‘朱虹菊’, ‘女’, 19, ‘2019小教3班’, ‘人文学院’, ‘15760637644’);
INSERT INTO t_student
VALUES (‘19204295’, ‘陈江’, ‘女’, 20, ‘2019小教3班’, ‘人文学院’, ‘18283412467’);
INSERT INTO t_student
VALUES (‘19204301’, ‘王良墁’, ‘女’, 10, ‘2019机电3班’, ‘机械工程学院’, ‘18380917891’);
INSERT INTO t_student
VALUES (‘19204302’, ‘邓力涓’, ‘女’, 19, ‘2019机电3班’, ‘机械工程学院’, ‘15183047291’);
INSERT INTO t_student
VALUES (‘19204305’, ‘雷宜’, ‘女’, 19, ‘2019机电3班’, ‘机械工程学院’, ‘19161537841’);
INSERT INTO t_student
VALUES (‘19205010’, ‘袁涛’, ‘男’, 19, ‘2019机电3班’, ‘机械工程学院’, ‘18090544532’);
INSERT INTO t_student
VALUES (‘19205019’, ‘袁小龙’, ‘男’, 18, ‘2019机电3班’, ‘机械工程学院’, ‘15760086865’);
INSERT INTO t_student
VALUES (‘19205059’, ‘贾杨庆’, ‘女’, 19, ‘2019应电3班’, ‘电子工程学院’, ‘13541336205’);
INSERT INTO t_student
VALUES (‘19205091’, ‘陈秋帆’, ‘男’, 18, ‘2019应电3班’, ‘电子工程学院’, ‘18383067893’);
INSERT INTO t_student
VALUES (‘19205177’, ‘彭卉’, ‘女’, 18, ‘2019应电3班’, ‘电子工程学院’, ‘13064386657’);
INSERT INTO t_student
VALUES (‘19205178’, ‘张艳琳’, ‘女’, 18, ‘2019应电3班’, ‘电子工程学院’, ‘18784994152’);
INSERT INTO t_student
VALUES (‘19205183’, ‘唐家明’, ‘男’, 19, ‘2019应电3班’, ‘电子工程学院’, ‘15908394072’);
INSERT INTO t_student
VALUES (‘19205211’, ‘刘宇’, ‘男’, 19, ‘2019应电3班’, ‘电子工程学院’, ‘19908253971’);
INSERT INTO t_student
VALUES (‘19232301’, ‘李冰’, ‘男’, 20, ‘2019数媒1班’, ‘艺术传媒学院’, ‘18919889973’);
INSERT INTO t_student
VALUES (‘19232303’, ‘李琦’, ‘女’, 18, ‘2019营销2班’, ‘商学院’, ‘18465639847’);
INSERT INTO t_student
VALUES (‘19232304’, ‘张琪琪’, ‘女’, 19, ‘2019营销1班’, ‘商学院’, ‘28373738292’);
INSERT INTO t_student
VALUES (‘19232308’, ‘张媛’, ‘女’, 20, ‘2019机电2班’, ‘机械工程学院’, ‘13474647888’);
INSERT INTO t_student
VALUES (‘19232316’, ‘张启东’, ‘男’, 18, ‘2019营销1班’, ‘商学院’, ‘13468998779’);
INSERT INTO t_student
VALUES (‘19232319’, ‘李三东’, ‘男’, 20, ‘2019机电2班’, ‘机械工程学院’, ‘12874648399’);
INSERT INTO t_student
VALUES (‘19232392’, ‘张云’, ‘男’, 19, ‘2019营销1班’, ‘商学院’, ‘14790463884’);
INSERT INTO t_student
VALUES (‘19242005’, ‘车昭勇’, ‘男’, 19, ‘2019电商3班’, ‘商学院’, ‘18483518775’);
INSERT INTO t_student
VALUES (‘19242006\r\n’, ‘罗茸瀚’, ‘男’, 18, ‘2019电商3班’, ‘商学院’, ‘17380873970’);
INSERT INTO t_student
VALUES (‘19242009’, ‘康鑫’, ‘女’, 19, ‘2019电商3班’, ‘商学院’, ‘17713750616’);
INSERT INTO t_student
VALUES (‘19242020’, ‘赵旭蔺’, ‘男’, 19, ‘2019数媒3班’, ‘艺术传媒学院’, ‘18384389937’);
INSERT INTO t_student
VALUES (‘19242033’, ‘裴东’, ‘男’, 18, ‘2019数媒1班’, ‘艺术传媒学院’, ‘19137925638’);
INSERT INTO t_student
VALUES (‘19242048’, ‘邓聪’, ‘男’, 18, ‘2019数媒3班’, ‘艺术传媒学院’, ‘18782682231’);
INSERT INTO t_student
VALUES (‘19242066’, ‘张希’, ‘女’, 19, ‘2019营销1班’, ‘商学院’, ‘13467858424’);
INSERT INTO t_student
VALUES (‘19242067’, ‘李娅侨’, ‘女’, 18, ‘2019数媒3班’, ‘艺术传媒学院’, ‘18381590816’);
INSERT INTO t_student
VALUES (‘19242073’, ‘李云’, ‘男’, 19, ‘2019数媒3班’, ‘艺术传媒学院’, ‘18328974944’);
INSERT INTO t_student
VALUES (‘19242095’, ‘刘亚玲’, ‘女’, 19, ‘2019数媒3班’, ‘艺术传媒学院’, ‘19283746478’);
INSERT INTO t_student
VALUES (‘19242096’, ‘陈杨敏’, ‘女’, 20, ‘2019计应3班’, ‘信息工程学院’, ‘15923369098’);
INSERT INTO t_student
VALUES (‘19242097’, ‘雷平’, ‘男’, 18, ‘2019计应3班’, ‘信息工程学院’, ‘13929387646’);
INSERT INTO t_student
VALUES (‘19242098’, ‘李昆华’, ‘男’, 19, ‘2019应电3班’, ‘电子工程学院’, ‘15283268376’);
INSERT INTO t_student
VALUES (‘19242099’, ‘张大东’, ‘男’, 20, ‘2019机电2班’, ‘机械工程学院’, ‘15838824597’);
以上是创建表的过程和内容,感觉很有意思,第一天的实训内容很简单,让我对最后的成品充满期待。