数据库选课系统mysql_学生选课系统数据库的设计与实现

该博客详细介绍了如何设计和实现一个基于MySQL的学生选课系统,包括学生信息、教师信息、课程信息、学生成绩、授课表和学生课表的数据库表结构,并提供了数据插入、查询、修改和删除的操作示例。
摘要由CSDN通过智能技术生成

实现功能:

对于学生而言可以实现选课功能,日常学习中,我们选课的时候,需要登陆自己的学号,密码,然后进行选课,选课的时候,会有老师的信息,课程号,课程名,授课老师,等。

学生的信息应该有

(学号,姓名,性别,系别,年龄,入学时间,专业,登陆密码)

教师的信息应该有

(教室工号,姓名,性别,密码,职称,所在系院,课程号)

课程表

(课程号,课程名,先修课号,学分)

学生选课

(学号,课程号,成绩)

授课表

(教室工号,课程号,上课地点,上课时间)

学生课表

(学号,已选课号,上课时间,上课地点)

create database students charset utf8;

create table stu_info (

stu_id int not null auto_increment primary key,

stu_name char(30) not null default '',

stu_sex char(1) not null default '',

stu_depar char(30) not null default '',

stu_age tinyint(3) not null default 0,

stu_time date,

stu_maj char(30) not null default '',

stu_pas char(30) not null default ''

)engine myisam charset utf8;

create table tea_info (

teacher_id int not null auto_increment primary key,

teacher_name char(30) not null default '',

teacher_sex char(30) not null default '',

<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值