mysql - 大学课程表的数据库设计
高洛峰
高洛峰 2017-04-17 13:13:12
0
1
648

想做一个课程表网站自用,但是遇到一个问题:该如何设计数据库
要求有:
1.每周的课程可能不一样(大多数是一样的)
2.有的课周次不连续
3.同一门课一周里有不同的教室
比如C语言。前4周每周三节课,第5周没课,第8周没课,其余每周2节课
再比如心理健康只有4-7周三下午第一节课,其余周的周三下午第一节是别的课
特来恳求大神帮忙回答

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(1)
Peter_Zhu

course table: id name description
Course time contact table: id courseId weekth (week) day (day of the week) hour (starting class time)
For example, at 14:00 on Wednesday of the third week -15:00 15:00-16:00 There are two classes, then there will be two records in the class time contact table:

Here we record the C language course ID as 15

|--id-- |--courseId--|-- weekth-- |--day-- |--hour--|
|1 |15 |3 |3 |14 |
|2 |15 |3 |3 |15 |

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!