**JAVA实训之旅1**
经过一个学期的Java学习,从无到有,从不会使用编辑器到能够较为熟练的敲代码,在这个过程我学习到了很多Java的知识,也对Java有了一个更深刻的认识,下面跟随小编的脚步开启实训第一课:
最后小编附上源代码
create table if not exists t_college(
id int(11) not null,
name varchar(50) not null default '学校名称',
president varchar(10) default '校长',
start_time timestamp default '建校时间',
telephone varchar(12) default '联系电话',
email varchar(20) default '电子邮箱',
addres varchar(50) default '通讯地址',
profile varchar(10000) default '学校简介'
);
INSERT INTO t_college VALUES(1,'泸州职业技术学院','郑瑞荃','2001-03-23 00:00:00',15884797686,'[email protected]','宜宾市叙州区横江镇','泸州职业技术学院是经四川省人民政府批准、国家教育部备案的综合性公办普通高等学校。')
SELECT * FROM t_college
CREATE TABLE if not EXISTS t_status(
id int(11) NOT NULL AUTO_INCREMENT,
college varchar(50) default '学校名称',
version varchar(10) default '系统版本',
author varchar(10) default '作者',
telephone varchar(20) default '联系电话',
address varchar(50) default '通讯地址',
email varchar(50),
PRIMARY KEY (id) USING BTREE
);
INSERT INTO t_status VALUES (1, '泸州职业技术学院', 'V1.0', '郑瑞荃', '15884797686', '泸州职业技术学院校园卡', '[email protected]');
SELECT * FROM t_status
CREATE TABLE if not EXISTS t_student(
id_ INT,
id varchar(20) DEFAULT '学号',
name varchar(20) DEFAULT '姓名',
sex varchar(2) DEFAULT '性别',
age int(11),
class varchar(50) DEFAULT '班级',
department varchar(50) DEFAULT '系部',
telephone varchar(12) DEFAULT '联系电话',
PRIMARY KEY (id) USING BTREE
);
INSERT INTO `t_student` VALUES (1,'19242039', '郑瑞荃', '男', 19, '2019大数据1班', '信息工程学院', '15884797686');
INSERT INTO `t_student` VALUES (2,'19204091', '黄运', '男', 18, '2019计应1班', '信息工程学院', '17318654033');
INSERT INTO `t_student` VALUES (3,'19204188', '张航', '男', 19, '2019计应3班', '信息工程学院', '15808230272');
INSERT INTO `t_student` VALUES (4,'19204189', '黄晓辉', '男', 17, '2019计应2班', '信息工程学院', '15182614160');
INSERT INTO `t_student` VALUES (5,'19204193', '周天宇', '男', 18, '2019计应3班', '信息工程学院', '15281314950');
INSERT INTO `t_student` VALUES (6,'19204196', '吴霜龙', '男', 18, '2019计应5班', '信息工程学院', '15283002142');
INSERT INTO `t_student` VALUES (7,'19204204', '雷庭浩', '男', 19, '2019计应4班', '信息工程学院', '18584193725');
INSERT INTO `t_student` VALUES (8,'19204205', '赖晓桐', '女', 19, '2019计应3班', '信息工程学院', '15828814625');
INSERT INTO `t_student` VALUES (9,'19204207', '杜雨露', '女', 19, '2019英教1班', '国际学院', '18716175667');
INSERT INTO `t_student` VALUES (10,'19204212', '魏先知', '男', 18, '2019英教2班', '国际学院', '15228935822');
INSERT INTO `t_student` VALUES (11,'19204219', '舒彬', '男', 20, '2019英教3班', '国际学院', '18383036430');
INSERT INTO `t_student` VALUES (12,'19204221', '李玉山', '男', 22, '2019英教2班', '国际学院', '15908362754');
INSERT INTO `t_student` VALUES (13,'19204225', '严贵川', '男', 18, '2019英教1班', '国际学院', '17360565517');
INSERT INTO `t_student` VALUES (14,'19204233', '林正川', '男', 18, '2019小教1班', '人文学院', '18715895290');
INSERT INTO `t_student` VALUES (15,'19204234', '陈桐', '男', 18, '2019小教2班', '人文学院', '15108181750');
INSERT INTO `t_student` VALUES (16,'19204236', '王川', '男', 17, '2019小教3班', '人文学院', '15328400375');
INSERT INTO `t_student` VALUES (17,'19204237', '吴梦英', '女', 19, '2019小教3班', '人文学院', '18048681302');
INSERT INTO `t_student` VALUES (18,'19204269', '朱虹菊', '女', 19, '2019小教3班', '人文学院', '15760637644');
INSERT INTO `t_student` VALUES (19,'19204295', '陈江', '女', 20, '2019小教3班', '人文学院', '18283412467');
INSERT INTO `t_student` VALUES (20,'19204301', '王良墁', '女', 10, '2019机电3班', '机械工程学院', '18380917891');
INSERT INTO `t_student` VALUES (21,'19204302', '邓力涓', '女', 19, '2019机电3班', '机械工程学院', '15183047291');
INSERT INTO `t_student` VALUES (22,'19204305', '雷宜', '女', 19, '2019机电3班', '机械工程学院', '19161537841');
INSERT INTO `t_student` VALUES (23,'19205010', '袁涛', '男', 19, '2019机电3班', '机械工程学院', '18090544532');
INSERT INTO `t_student` VALUES (24,'19205019', '袁小龙', '男', 18, '2019机电3班', '机械工程学院', '15760086865');
INSERT INTO `t_student` VALUES (25,'19205059', '贾杨庆', '女', 19, '2019应电3班', '电子工程学院', '13541336205');
INSERT INTO `t_student` VALUES (26,'19205091', '陈秋帆', '男', 18, '2019应电3班', '电子工程学院', '18383067893');
INSERT INTO `t_student` VALUES (27,'19205177', '彭卉', '女', 18, '2019应电3班', '电子工程学院', '13064386657');
INSERT INTO `t_student` VALUES (28,'19205178', '张艳琳', '女', 18, '2019应电3班', '电子工程学院', '18784994152');
INSERT INTO `t_student` VALUES (29,'19205183', '唐家明', '男', 19, '2019应电3班', '电子工程学院', '15908394072');
INSERT INTO `t_student` VALUES (30,'19205211', '刘宇', '男', 19, '2019应电3班', '电子工程学院', '19908253971');
INSERT INTO `t_student` VALUES (31,'19232301', '李冰', '男', 20, '2019数媒1班', '艺术传媒学院', '18919889973');
INSERT INTO `t_student` VALUES (32,'19232303', '李琦', '女', 18, '2019营销2班', '商学院', '18465639847');
INSERT INTO `t_student` VALUES (33,'19232304', '张琪琪', '女', 19, '2019营销1班', '商学院', '28373738292');
INSERT INTO `t_student` VALUES (34,'19232308', '张媛', '女', 20, '2019机电2班', '机械工程学院', '13474647888');
INSERT INTO `t_student` VALUES (35,'19232316', '张启东', '男', 18, '2019营销1班', '商学院', '13468998779');
INSERT INTO `t_student` VALUES (36,'19232319', '李三东', '男', 20, '2019机电2班', '机械工程学院', '12874648399');
INSERT INTO `t_student` VALUES (37,'19232392', '张云', '男', 19, '2019营销1班', '商学院', '14790463884');
INSERT INTO `t_student` VALUES (38,'19242005', '车昭勇', '男', 19, '2019电商3班', '商学院', '18483518775');
INSERT INTO `t_student` VALUES (39,'19242006\r\n', '罗茸瀚', '男', 18, '2019电商3班', '商学院', '17380873970');
INSERT INTO `t_student` VALUES (40,'19242009', '康鑫', '女', 19, '2019电商3班', '商学院', '17713750616');
INSERT INTO `t_student` VALUES (41,'19242020', '赵旭蔺', '男', 19, '2019数媒3班', '艺术传媒学院', '18384389937');
INSERT INTO `t_student` VALUES (42,'19242033', '裴东', '男', 18, '2019数媒1班', '艺术传媒学院', '19137925638');
INSERT INTO `t_student` VALUES (43,'19242048', '邓聪', '男', 18, '2019数媒3班', '艺术传媒学院', '18782682231');
INSERT INTO `t_student` VALUES (44,'19242066', '张希', '女', 19, '2019营销1班', '商学院', '13467858424');
INSERT INTO `t_student` VALUES (45,'19242067', '李娅侨', '女', 18, '2019数媒3班', '艺术传媒学院', '18381590816');
INSERT INTO `t_student` VALUES (46,'19242073', '李云', '男', 19, '2019数媒3班', '艺术传媒学院', '18328974944');
INSERT INTO `t_student` VALUES (47,'19242095', '刘亚玲', '女', 19, '2019数媒3班', '艺术传媒学院', '19283746478');
INSERT INTO `t_student` VALUES (48,'19242096', '陈杨敏', '女', 20, '2019计应3班', '信息工程学院', '15923369098');
INSERT INTO `t_student` VALUES (49,'19242097', '雷平', '男', 18, '2019计应3班', '信息工程学院', '13929387646');
INSERT INTO `t_student` VALUES (50,'19242098', '李昆华', '男', 19, '2019应电3班', '电子工程学院', '15283268376');
INSERT INTO `t_student` VALUES (51,'19242099', '张大东', '男', 20, '2019机电2班', '机械工程学院', '15838824597');
SELECT * FROM t_student
create table if not EXISTS t_user(
id int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
username VARCHAR(50) DEFAULT '姓名',
password VARCHAR(50) DEFAULT '密码',
telephone VARCHAR(50) DEFAULT '电话',
register_time TIMESTAMP
);
INSERT INTO t_user VALUES(1,'郑瑞荃', 'root123','15884797686','2001-03-23 00:00:00');
SELECT * FROM t_user