自动排课系统的设计与实现
自动排课系统的设计与实现mysql数据库创建语句
自动排课系统的设计与实现oracle数据库创建语句
自动排课系统的设计与实现sqlserver数据库创建语句
自动排课系统的设计与实现spring+springMVC+hibernate框架对象(javaBean,pojo)设计
自动排课系统的设计与实现spring+springMVC+mybatis框架对象(javaBean,pojo)设计
高质量编程视频:shangyepingtai.xin
自动排课系统的设计与实现mysql数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘超级管理员账号’,
password varchar(100) comment ‘超级管理员密码’
) comment ‘超级管理员’;
insert into t_admin(username,password) values(‘admin’,‘123456’);
SQLCopy
教室表创建语句如下:
create table t_jiaoshi(
id int primary key auto_increment comment ‘主键’,
jiaoshiName varchar(100) comment ‘教室编号’,
lx varchar(100) comment ‘教室类型’,
address varchar(100) comment ‘地点’
) comment ‘教室’;
SQLCopy
课程表创建语句如下:
create table t_kc(
id int primary key auto_increment comment ‘主键’,
kcName varchar(100) comment ‘课程’,
teacherId int comment ‘上课老师’
) comment ‘课程’;
SQLCopy
排课表创建语句如下:
create table t_pk(
id int primary key auto_increment comment ‘主键’,
teacherId int comment ‘老师’,
kcId int comment ‘课程’,
jiaoshiId int comment ‘教室’,
yxId int comment ‘院系’,
xq varchar(100) comment ‘星期’,
rq varchar(100) comment ‘上午下午’
) comment ‘排课’;
SQLCopy
教务人员表创建语句如下:
create table t_ptadmin(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
ptadminName varchar(100) comment ‘姓名’,
headPic varchar(100) comment ‘头像’,
phone varchar(100) comment ‘电话’,
age varchar(100) comment ‘年龄’
) comment ‘教务人员’;
SQLCopy
学生表创建语句如下:
create table t_student(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
studentName varchar(100) comment ‘姓名’,
headPic varchar(100) comment ‘头像’,
phone varchar(100) comment ‘电话’,
age varchar(100) comment ‘年龄’,
yxId int comment ‘院系’
) comment ‘学生’;
SQLCopy
老师表创建语句如下:
create table t_teacher(
id int primary key auto_increment comment ‘主键’,
username varchar(100) comment ‘账号’,
password varchar(100) comment ‘密码’,
teacherName varchar(100) comment ‘姓名’,
headPic varchar(100) comment ‘头像’,
phone varchar(100) comment ‘电话’,
age varchar(100) comment ‘年龄’
) comment ‘老师’;
SQLCopy
通知表创建语句如下:
create table t_tongzhi(
id int primary key auto_increment comment ‘主键’,
title varchar(100) comment ‘通知标题’,
content varchar(100) comment ‘通知内容’
) comment ‘通知’;
SQLCopy
建议表创建语句如下:
create table t_yijian(
id int primary key auto_increment comment ‘主键’,
teacherId int comment ‘老师’,
title varchar(100) comment ‘建议标题’,
content varchar(100) comment ‘建议内容’
) comment ‘建议’;
SQLCopy
院系表创建语句如下:
create table t_yx(
id int primary key auto_increment comment ‘主键’,
yxName varchar(100) comment ‘院系’
) comment ‘院系’;
SQLCopy
自动排课系统的设计与实现oracle数据库版本源码:
超级管理员表创建语句如下:
create table t_admin(
id integer,
username varchar(100),
password varchar(100)
);
insert into t_admin(id,username,password) values(1,‘admin’,‘123456’);
–超级管理员字段加注释
comment on column t_admin.id is ‘主键’;
comment on column t_admin.username is ‘超级管理员账号’;
comment on column t_admin.password is ‘超级管理员密码’;
–超级管理员表加注释
comment on table t_admin is ‘超级管理员’;
SQLCopy
教室表创建语句如下:
create table t_jiaoshi(
id integer,
jiaoshiName varchar(100),
lx varchar(100),
address varchar(100)
);
–教室字段加注释
comment on column t_jiaoshi.id is ‘主键’;
comment on column t_jiaoshi.jiaoshiName is ‘教室编号’;
comment on column t_jiaoshi.lx is ‘教室类型’;
comment on column t_jiaoshi.address is ‘地点’;
–教室表加注释
comment on table t_jiaoshi is ‘教室’;
SQLCopy
课程表创建语句如下:
create table t_kc(
id integer,
kcName varchar(100),
teacherId int
);
–课程字段加注释
comment on column t_kc.id is ‘主键’;
comment on column t_kc.kcName is ‘课程’;
comment on column t_kc.teacherId is ‘上课老师’;
–课程表加注释
comment on table t_kc is ‘课程’;
SQLCopy
排课表创建语句如下:
create table t_pk(
id integer,
teacherId int,
kcId int,
jiaoshiId int,
yxId int,
xq varchar(100),
rq varchar(100)
);
–排课字段加注释
comment on column t_pk.id is ‘主键’;
comment on column t_pk.teacherId is ‘老师’;
comment on column t_pk.kcId is ‘课程’;
comment on column t_pk.jiaoshiId is ‘教室’;
comment on column t_pk.yxId is ‘院系’;
comment on column t_pk.xq is ‘星期’;
comment on column t_pk.rq is ‘上午下午’;
–排课表加注释
comment on table t_pk is ‘排课’;
SQLCopy
教务人员表创建语句如下:
create table t_ptadmin(
id integer,
username varchar(100),
password varchar(100),
ptadminName varchar(100),
headPic varchar(100),
phone varchar(100),
age varchar(100)
);
–教务人员字段加注释
comment on column t_ptadmin.id is ‘主键’;
comment on column t_ptadmin.username is ‘账号’;
comment on column t_ptadmin.password is ‘密码’;
comment on column t_ptadmin.ptadminName is ‘姓名’;
comment on column t_ptadmin.headPic is ‘头像’;
comment on column t_ptadmin.phone is ‘电话’;
comment on column t_ptadmin.age is ‘年龄’;
–教务人员表加注释
comment on table t_ptadmin is ‘教务人员’;
SQLCopy
学生表创建语句如下:
create table t_student(
id integer,
username varchar(100),
password varchar(100),
studentName varchar(100),
headPic varchar(100),
phone varchar(100),
age varchar(100),
yxId int
);
–学生字段加注释
comment on column t_student.id is ‘主键’;
comment on column t_student.username is ‘账号’;
comment on column t_student.password is ‘密码’;
comment on column t_student.studentName is ‘姓名’;
comment on column t_student.headPic is ‘头像’;
comment on column t_student.phone is ‘电话’;
comment on column t_student.age is ‘年龄’;
comment on column t_student.yxId is ‘院系’;
–学生表加注释
comment on table t_student is ‘学生’;