教师表
fcreatetableTeacher
T
ame
char20C
ame
char20S
o
char10
32数据初始化将学生类别加入表Stude
t中
i
serti
toStude
tvalues000’’张明’’M’’’’哈尔滨’’软件一班’’大一’i
serti
toStude
tvalues001’’李三’’M’’’’长春’’软件二班’’大三’i
serti
toStude
tvalues002’’王强’’M’’’’哈尔滨’’软件二班’’大二’i
serti
toStude
tvalues003’’张雪’’F’’’’哈尔滨’’软件一班’’大一’i
serti
toStude
tvalues004’’李力’’M’’’’大连’’软件一班’’大三’i
serti
toStude
tvalues005’’张小’’M’’’’哈尔滨’’软件三班’’大一’
将考试类别加入Exam表中
i
serti
toExamvalues000A12385i
serti
toExamvalues001B12377i
serti
toExamvalues002C12391i
serti
toExamvalues003A12380
fi
serti
toExamvalues004B12375i
serti
toExamvalues005A12389
将课程加入Course表中
i
serti
toCoursevaluesA123高等数学张老师i
serti
toCoursevaluesB123数据库系统概念李老师i
serti
toCoursevaluesC123网络计算机刘老师
将奖金加入Bo
us中
i
serti
toBo
usvalues000’’张明’400i
serti
toBo
usvalues001’’李三’0i
serti
toBo
usvalues002’’王强’800i
serti
toBo
usvalues003’’张雪’100i
serti
toBo
usvalues004’’李力’0
fi
serti
toBo
usvalues005’’张小’1500
将教师信息加入Teacher中
i
serti
toTeachervalues张老师高等数学000i
serti
toTeachervalues张老师高等数学002i
serti
toTeachervalues李老师数据库系统概念003i
serti
toTeachervalues张老师高等数学005i
serti
toTeachervalues李老师网络计算机001
索引的使用
usestude
tcreateu
ique
o
clusteredi
dexi
dex_s
oo
Stude
ts
o
触发器
createtriggerremi
dero
stude
t
fafteri
sertupdateasraiserror你在插入或修改学生的数据1610droptrigger‘remi
der’
selectfromStude
twheres
o002
存储过程
createprocedureusp_getStude
t
ame
char40as
selectfromStude
twhereS
ame
ame
执行存储过程
executeusp_getStude
t张明
f4、设计心得
通过这次课程设计,我更加熟练的掌握了使用SQL进行数据库软件开发的方法,加深了对数据库课程知识的理解。由于时间仓促,软件还有很多不足之处,如:成绩查询部分不够完善,成绩输入模块不支持学生成绩批量输入,软件代码交冗余、效率不高等等,都是对SQL操作不熟练,对相关功能缺乏认识造成的。在今后的学习中我会加强理论与实践的结合,通r