全球旧事资料 分类
时间在建立索引时应遵循在经常需要搜索的列上建立索引在主关键字上建立索引在经常用于连接的列上建立索引即在外键上建立索引在经常需要根据范围进行搜索的列上创建索引因为索引已经排序其指定的范围是连续的等规则。才能充分利用索引的作用避免因索引引起的负面作用。
42数据流图
该数据流图主要体现教职工对学生信息、课程信息和学生成绩的管理然后存储的信息作用于查询系统。在学生能够操作的只有成绩查询如图所示
图11功能流图
f5数据库实施与维护51数据库实施
511插入
1向学生表插入信息
i
serti
tostude
tvalues101李明女1983091811i
serti
tostude
tvalues102王二男1984010111i
serti
tostude
tvalues103李开男1984010111i
serti
tostude
tvalues104章浪女1984111111i
serti
tostude
tvalues105生命男1984120513i
serti
tostude
tvalues106无悔女1984110113i
serti
tostude
tvalues107历史女1984100112i
serti
tostude
tvalues108风尘男198590811i
serti
tostude
tvalues109活着男1985121212i
serti
tostude
tvalues110傻瓜女1985082812查看记录
Selectfromstude
t
2向成绩表中添加
i
serti
toscorevalues1010188
i
serti
toscorevalues1010285
i
serti
toscorevalues1020280
i
serti
toscorevalues1010388
i
serti
toscorevalues1020285
i
serti
toscorevalues1020380
i
serti
toscorevalues1030183
i
serti
toscorevalues1030285
i
serti
toscorevalues1030390
i
serti
toscorevalues1040160
f查看记录
Selectfromscore
3向教师表中添加数据
i
serti
tocoursevalues01计算机11
i
serti
tocoursevalues02网络管理12
i
serti
tocoursevalues03专业英语13
i
serti
tocoursevalues04软件工程14
查看记录
Selectfromcourse
4向课程表中添加数据
i
serti
toteachervalues11无意计算机系男197345教授i
serti
toteachervalues12生活计算机系女1975121副教授i
serti
toteachervalues13没有管理系女197533副教授i
serti
toteachervalues14离开英语系男197355教授
查看记录
Selectfromteacher
f512查询
1查询成绩大于学号为101的学生的课程为02的成绩的所有列。
selectfromscorewheredegreeselectdegreefromscorewheres
o101a
dc
o02
2查询课程号01大于课程号02的最大值、并以分数降序排序的成绩表中所有列
selectfromscoreswheresc
o01a
dsdegreeselectmaxdegreefromscoreywhereyc
o02orderbydegreedesc
go
selectmaxdegreeas
好听全球资料 返回顶部