当前位置:   article > 正文

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

mysql设计一个学生选课系统的数据库背景描述:某大学共有5个学院,每个学院有多

实现功能:

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

学生的信息应该有

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

教师的信息应该有

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

课程表

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

学生选课

(学号,课程号,成绩)

授课表

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

学生课表

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

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 '',

<
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/爱喝兽奶帝天荒/article/detail/871754
推荐阅读
相关标签
  

闽ICP备14008679号