【Windows Form 实战】学生成绩管理系统(八) 管理员模块设计3 视图和存储过程
来源:互联网 发布:执业药师网络教育 编辑:程序博客网 时间:2024/06/05 07:11
1、班级视图
create view [Class_View]asselect distinct(sclass)from TableStudent;GO
2、成绩视图
create View [S_C_Score_View]asselect B.sname, B.snum, C.cname, C.cnum, A.scorefrom SC A, TableStudent B, TableCourse Cwhere A.snum = B.snum and A.cnum = C.cnum; GO
3、删除学生 存储过程
create procedure [spDeleteStudent]( @snum int )asbegindelete from TableStudentwhere snum = @snum;delete from SCwhere snum = @snum;delete from Loginwhere userID = @snum;endGO
4、删除教师 存储过程
create procedure [spDeleteTeacher]( @tnum int )asdeclare @cnum intBeginselect * into tfrom TableTeacherwhere tnum = @tnum;select @cnum = cnum from t;if @cnum is not null begin update TableCourse set tnum = null where cnum = @cnum; enddelete from TableTeacher where tnum = @tnum;drop table t;EndGO
源代码文件下载地址
0 0
- 【Windows Form 实战】学生成绩管理系统(八) 管理员模块设计3 视图和存储过程
- 【Windows Form 实战】学生成绩管理系统(八) 管理员模块设计2
- 【Windows Form 实战】学生成绩管理系统(七) 管理员模块设计
- 【Windows Form 实战】学生成绩管理系统(五) 学生模块设计
- 【Windows Form 实战】学生成绩管理系统(四) 登录模块设计
- 【Windows Form 实战】学生成绩管理系统(六) 教师模块设计
- 【Windows Form 实战】学生成绩管理系统(一) 简要概述
- 【Windows Form 实战】学生成绩管理系统(二) 数据准备
- 【Windows Form 实战】学生成绩管理系统(三) 公共类Data.cs
- 面向过程:学生成绩管理系统
- 学生成绩管理系统设计
- 学生成绩管理系统数据库设计
- 学生成绩管理系统设计
- 学生成绩管理系统总体设计
- 汇编程序设计--学生成绩管理系统
- Java GUI学生成绩管理系统--管理员界面
- 学生成绩管理系统模块基本介绍
- 学生成绩管理系统测试、调试过程
- 【起航计划 033】2015 起航计划 Android APIDemo的魔鬼步伐 32 App->Service->Foreground Service Controller service使用,共享service,前台服务,onStartCo
- 【起航计划 034】2015 起航计划 Android APIDemo的魔鬼步伐 33 App->Service->Local Service Binding 绑定服务 ServiceConnection Binder
- 【起航计划 035】2015 起航计划 Android APIDemo的魔鬼步伐 34 App->Service->Local Service Controller
- 【起航计划 036】2015 起航计划 Android APIDemo的魔鬼步伐 35 App->Service->Messenger Service Messenger实现进程间通信
- 【IOS】Mac和IOS开发资源汇总
- 【Windows Form 实战】学生成绩管理系统(八) 管理员模块设计3 视图和存储过程
- 【起航计划ObjC 002】印第安老斑鸠ObjC的幻想 ---- Ubuntu下安装并使用MAC虚拟机
- LeAndroid招聘汇总
- VirtualBox虚拟机网络设置(四种方式)
- 缩短移动开发周期的ApiCloud
- bzoj1853 幸运数字 容斥原理&dfs
- 【起航计划ObjC 003】印第安老斑鸠ObjC的幻想 ---- ObjC经典问题
- 【起航计划 037】2015 起航计划 Android APIDemo的魔鬼步伐 36 App->Service->Remote Service Binding AIDL实现不同进程间调用服务接口 kill 进程
- 彻底解决INSTALL_FAILED_UPDATE_INCOMPATIBLE的安装错误