用户登录表(user):
字段:id,u_name,u_pwd,u_note等
学生表(student):
字段:id,name,age,cid,addree,class_id(班级id),subject_id(科目id) 等
班级表(class):
字段:c_id,name,teacher_id(责任老师)等
科目(subject):
字段:s_id ,name,note等。
教师表(teacher)
字段:t_id,name,note等。
关联关系表:
(老师与学生,多对多)
(科目与老师,多对多)
(科目与学生,多对多)
(班级与老师,多对多)
(班级与学生,一对多)
添加: insert into Students values(1,"学生姓名","年龄","性别");属性有多少看你项目需要了。
删除: delete from Students where id="1";
修改: update Students set name="小白" where id='1';
显示: select * from Students;
查询: select * from Students where name like "%白%"
用户登录表,用户信息表,科目信息表,用户科目关系表/成绩表(用户与科目多对多)