简体   繁体   English

如何处理完成学业的学生记录

[英]How to handle student record who completed their studies

I am making students result record database (website). 我正在制作学生成绩记录数据库(网站)。 1.) How can I move the passed students to next class ie which attribute (may be joining year) I have to use to sort them out ? 1.)如何将通过的学生转移到下一堂课,即我必须使用哪个属性(可能是入学年份)来进行分类?

2.) After 10th Class when students leave the school how can I hide their data from database and move 9th class students record to 10th class. 2.)10年级学生离开学校后,我该如何从数据库中隐藏其数据并将9年级学生记录移至10年级。 I am using codeigniter and mysql for my website. 我在我的网站上使用codeigniter和mysql。 Thanks 谢谢

For your question, The Logic should be in JAVA or PHP or C# or some server side script. 对于您的问题,The Logic应该使用JAVA或PHP或C#或某些服务器端脚本。

  1. For your first question, write a prepared statement (using a prepared statement is a Good practice, reusability, etc.., even you can have simple join query) to check the grades of the student, if they passed Update teh class to current+1, else do nothing 对于您的第一个问题,请编写准备好的语句(使用准备好的语句是一种很好的做法,具有可重用性,即使您可以使用简单的连接查询,也可以),以检查学生的成绩(如果他们将Update等级通过了current +) 1,否则什么都不做
  2. For your second question, You can add an attribute Active in Student Table and make a default value Yes, If He/She (Student) left the school, then UPDATE it to No 对于第二个问题,您可以在“学生表”中添加一个“活动”属性并设置默认值是,如果他(她)(学生)离开学校,则将其更新为“否”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM