springboot+vue+mybatisplus项目实战-学生成绩管理系统20

661 篇文章 4 订阅
112 篇文章 0 订阅
文章详细描述了如何在数据库中创建三个表(am_user,am_student,am_score)并进行插入操作,展示了学生管理和成绩管理的部分功能,涉及SQL命令如`droptable`,`createtable`,和`insertinto`。
摘要由CSDN通过智能技术生成

数据库

drop table if exists am_user;
create table am_user(
	id bigint not null auto_increment primary key comment '主键id',
	user_name varchar(50) not null comment '用户名',
	pwd varchar(50) not null comment '密码',
	is_deleted tinyint default 0 comment '是否删除,1删除,0正常'
) comment '用户表';
insert into am_user values (1,'admin','1234',0);

drop table if exists am_student;
create table am_student(
	id bigint not null auto_increment primary key comment '主键id',
	number varchar(50) not null comment '学号,因为使用软删除,所以未设置唯一键索引',
	real_name varchar(50) not null comment '姓名',
	enroll_time datetime not null default CURRENT_TIMESTAMP comment '入学日期',
	is_deleted tinyint default 0 comment '是否删除,1删除,0正常'
) comment '学生表';
insert into am_student values (1,'001','张三','2023-01-01',0);

drop table if exists am_score;
create table am_score(
	id bigint not null auto_increment primary key comment '主键id',
	student_id bigint not null comment '学生id',
	exam_name varchar(100) not null comment '考试名称',
	score_cn decimal(5,2) default 0 comment '语文成绩',
	score_en decimal(5,2) default 0 comment '英语成绩',
	score_math decimal(5,2) default 0 comment '数学成绩',
	is_deleted tinyint default 0 comment '是否删除,1删除,0正常'
) comment '成绩表';
insert into am_score values(1,1,'摸底考试',99,99,99,0);


测试

登录

 首页

 学生管理

 成绩管理

 

新增学生

编辑学生

新增成绩

编辑成绩

退出

以上就是本系统的全部代码。

希望对各位有帮助。

  • 27
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

虾米大王

有你的支持,我会更有动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值