数据库电子版实习报告.docx
《数据库电子版实习报告.docx》由会员分享,可在线阅读,更多相关《数据库电子版实习报告.docx(16页珍藏版)》请在冰点文库上搜索。
![数据库电子版实习报告.docx](https://file1.bingdoc.com/fileroot1/2023-6/21/262f3768-bcf5-4492-bd6c-a3dbf97826d1/262f3768-bcf5-4492-bd6c-a3dbf97826d11.gif)
数据库电子版实习报告
说明
一、实习报告的主要内容:
1.个人完成实习内容和任务的基本情况。
2.对实习场所生产、经营管理及技术措施上的优、缺点的分析和建议。
3.实习的主要收获和存在的问题。
4.个人在实习中的主要优、缺点。
5.通过实习的检验,提出对过去所学课程和各个教学环节的意见。
二、实习报告要求文字简明扼要,书写清晰。
实习报告要求在实习结束前完成,然后交指导教师审阅并评定成绩。
三、实习结束后,指导教师填写成绩单,实习报告收齐后统一交学院存档。
实习名称
数据库原理课程设计
实习地点
信息技术学院数据库实验室
实习起止时间
2012年6月25日——2012年6月29日
实习报告
一.课题名称
二.系统简要介绍
三.用户需求
四.使用PowerDesigner设计CDM截图
五.使用PowerDesigner设计PDM截图
六.生成的数据库文件截图
七.生成的模型文档
八.实习的心得和体会
一、课题名称:
车站售票管理系统
二、系统简要介绍:
汽车售票管理系统主要用于车站日常的票务处理,汽车售票管理系统在正常运行中需要对使用该系统的主要是汽车站售票人员、汽车站售票工作的管理人员与系统管理员。
未达到操作过程中的直观、方便、实用、安全等要求,我们组在这个系统中采用模块化程序设计的方法,便于系统功能的组合和修改,以及扩充和维护。
四、用户需求
(一)根据需求分析,本系统要实现以下的基本功能。
1登录功能:
分为汽车站售票人员和系统管理员两种权限登录。
用户通过输入不同用户名和密码进行身份验证,系统通过用户名和密码判断不同用户的权限从而确定该用户可以执行的操作,
2车票信息查询功能:
由汽车站的普通售票人员通过不同的检索入口,查询车票信息,并进行排序。
3修改功能:
汽车站售票人员、汽车站售票工作的管理人员能够实现修改自身的用户名和密码,系统管理员则能够实现系统用户与普通用户的添加,修改普通用户与系统管理员的密码,以此确保该系统能够安全操作,避免不必要的损失。
4汇总功能:
对当天车票的信息进行汇总
(二)处理过程
车票汇总:
工作人员将一天所售出的票进行统计,包括票数,票类,形成确定的车票记录。
查询:
将顾客需要的车票信息输入系统,并查询其是否可供应。
查询顾客信息:
为订票所设,将顾客的准确信息记录为其预订车票。
处理买票:
进行买票交易,把顾客需要的票售出并在系统中作相应记录,确定车票记录。
处理订票:
进行订票交易,工作人员为顾客预定其所需车票,并在系统中作相应记录,确定订票记录。
处理退票:
进行退票交易,工作人员为顾客办理退票手续,并在系统中作相应记录确定退票记录。
四、使用PowerDesigner设计CDM截图
五使用PowerDesigner设计PDM截图
六、生成的数据库文件截图
七、生成的模型文档
Listoftableindexes
Name
Code
Unique
Cluster
Primary
ForeignKey
AlternatKey
Table
顾客_PK
顾客_PK
X
X
顾客
车票_PK
车票_PK
X
X
车票
订票_PK
订票_PK
X
X
订票
订票_FK
订票_FK
X
订票
订票2_FK
订票2_FK
X
订票
换票_PK
换票_PK
X
X
换票
换票_FK
换票_FK
X
换票
换票2_FK
换票2_FK
X
换票
售票_PK
售票_PK
X
X
售票
售票_FK
售票_FK
X
售票
售票2_FK
售票2_FK
X
售票
退票_PK
退票_PK
X
X
退票
退票_FK
退票_FK
X
退票
退票2_FK
退票2_FK
X
退票
Relationship_1_PK
Relationship_1_PK
X
X
Relationip_1
Relationship_1_FK
Relationship_1_FK
X
Relationship_1
Relationship_2_FK
Relationship_2_FK
X
Relationship_1
1.1.1Listoftablekeys
Name
Code
Table
Identifier_1
Identifier_1
顾客
Identifier_1
Identifier_1
车票
Identiier_1
Identifier_1
订票
Identifier_1
Identifier_1
换票
Identifier_1
Identifier_1
售票
Identifier_1
Identifier_1
退票
Identifier_
Identifier_1
Relationship_1
1.1.2Listofreferences
Name
Code
ParentTable
ChildTable
Relationship_1
Relationship_1
车票
Relationship_1
Relationship_1
Relationship_2
顾客
Relationship_1
订票
订票
车票
订票
订票
订票2
顾客
订票
换票
换票
车票
换票
换票
换票2
顾客
换票
售票
售票
顾客
售票
售票
售票2
车票
售票
退票
退票
顾客
退票
退票
退票2
车票
退票
1.1.3Listoftables
Name
Code
顾客
顾客
车票
车票
订票
订票
换票
换票
售票
售票
退票
退票
Relationship_1
Relationship_1
1.2Multi-dimensionalDiagramsObjects
2Tables
2.1Modelleveltables
2.1.1TableRelationship_1
2.1.1.1CardoftableRelationship_1
Name
Relationship_1
Code
Relationship_1
DBMS
MicrosoftSQLServer2000
2.1.1.2CodepreviewoftableRelationship_1
altertableRelationship_1
dropconstraintFK_RELATION_RELATIONS_车票
go
altertableRelationship_1
dropconstraintFK_RELATION_RELATIONS_顾客
go
ifexists(select1
fromsysindexes
whereid=object_id('Relationship_1')
andname='Relationship_1_FK'
andindid>0
andindid<255)
dropindexRelationship_1.Relationship_1_FK
go
ifexists(select1
fromsysindexes
whereid=object_id('Relationship_1')
andname='Relationship_2_FK'
andindid>0
andindid<255)
dropindexRelationship_1.Relationship_2_FK
go
ifexists(select1
fromsysobjects
whereid=object_id('Relationship_1')
andtype='U')
droptableRelationship_1
go
/*==============================================================*/
/*Table:
Relationship_1*/
/*==============================================================*/
createtableRelationship_1(
票号char(20)notnull,
身份证号char(18)notnull,
constraintPK_RELATIONSHIP_1primarykey(票号,身份证号)
)
go
/*==============================================================*/
/*Index:
Relationship_1_FK*/
/*==============================================================*/
createindexRelationship_1_FKonRelationship_1(
票号ASC
)
go
/*==============================================================*/
/*Index:
Relationship_2_FK*/
/*==============================================================*/
createindexRelationship_2_FKonRelationship_1(
身份证号ASC
)
go
altertableRelationship_1
addconstraintFK_RELATION_RELATIONS_车票foreignkey(票号)
references车票(票号)
go
altertableRelationship_1
addconstraintFK_RELATION_RELATIONS_顾客foreignkey(身份证号)
references顾客(身份证号)
go
2.1.1.3ListofdiagramscontainingthetableRelationship_1
Name
Code
Diagram_1
Diagram_1
2.1.1.4ListofoutgoingreferencesofthetableRelationship_1
ame
Code
ForeignKeyColumns
Relationship_1
Relationship_1
票号
Relationship_1
Relationship_2
身份证号
2.1.1.5ListofalldependenciesofthetableRelationship_1
Name
Code
ClassName
Relationship_1
Relationship_1
Reference
Relationship_1
Relationship_2
Reference
2.1.1.6ListofextendedattributesofthetableRelationship_1
Name
DataType
Value
TargetName
ExtCktNotForReplication
(Boolean)
false
MicrosoftSQLServer2000
2.1.1.7ListofcolumnsofthetableRelationship_1
Name
Code
票号
票号
身份证号
身份证号
2.1.1.8Column票号ofthetableRelationship_1
2.1.1.8.1Cardofthecolumn票号ofthetableRelationship_1
Name
票号
Code
票号
DataType
char(20)
Mandatory
Yes
2.1.1.8.2Checkconstraintnameofthecolumn票号ofthetableRelationship_1
CKC_票号_RELATION
2.1.1.8.3Checkofthecolumn票号ofthetableRelationship_1
Minimumvalue
Maximumvalue
Defaultvalue
Unit
Format
Uppercase
No
Lowercase
No
Cannotmodify
No
Listofvalues
2.1.1.8.4Servervalidationruleofthecolumn票号ofthetableRelationship_1
%MINMAX%and%LISTVAL%and%RULES%
2.1.1.8.5Listofalldependenciesofthetablecolumn票号
Name
Code
ClassName
?
?
ReferenceJoin
票号
票号
IndexColumn
票号
票号
IndexColumn
Identifier_1
Identifier_1
Key
2.1.1.8.6Listofextendedattributesofthetablecolumn票号
Name
DataType
Value
TargetName
ExtCkcNotForReplication
(Boolean)
false
MicrosoftSQLServer2000
ExtDeftConstName
(String)
MicrosoftSQLServer2000
ExtIdentityIncrement
(Integer)
MicrosoftSQLServer2000
ExtIdentitySeed
(Integer)
MicrosoftSQLServer2000
ExtIdtNotForReplication
(Boolean)
false
MicrosoftSQLServer2000
ExtNullConstName
(String)
MicrosoftSQLServer2000
2.1.1.9Column身份证号ofthetableRelationship_1
2.1.1.9.1Cardofthecolumn身份证号ofthetableRelationship_1
Name
身份证号
Code
身份证号
DataType
char(18)
Mandatory
Yes
2.1.1.9.2Checkconstraintnameofthecolumn身份证号ofthetableRelationship_1
CKC_身份证号_RELATION
2.1.1.9.3Checkofthecolumn身份证号ofthetableRelationship_1
Minimumvalue
Maximumvalue
Defaultvalue
Unit
Format
Uppercase
No
Lowercase
No
Cannotmodify
No
Listofvalues
2.1.1.9.4Servervalidationruleofthecolumn身份证号ofthetableRelationship_1
%MINMAX%and%LISTVAL%and%RULES%
2.1.1.9.5Listofalldependenciesofthetablecolumn身份证号
Name
Code
ClassName
?
?
ReferenceJoin
身份证号
身份证号
IndexColumn
身份证号
身份证号
IndexColumn
Identifier_1
Identifier_1
Key
2.1.1.9.6Listofextendedattributesofthetablecolumn身份证号
Name
DataType
Value
TargetName
ExtCkcNotForReplication
(Boolean)
false
MicrosoftSQLServer2000
ExtDeftConstName
(String)
MicrosoftSQLServer2000
ExtIdentityIncrement
(Integer)
MicrosoftSQLServer2000
ExtIdentitySeed
(Integer)
MicrosoftSQLServer2000
ExtIdtNotForReplication
(Boolean)
false
MicrosoftSQLServer2000
ExtNullConstName
(String)
MicrosoftSQLServer2000
2.1.1.10ListofkeysofthetableRelationship_1
Name
Code
Primary
Identifier_1
Identifier_1
X
2.1.1.11KeyIdentifier_1ofthetableRelationship_1
2.1.1.11.1CardofthekeyIdentifier_1ofthetableRelationship_1
Name
Identifier_1
Code
Identifier_1
Table
Relationship_1
2.1.1.11.2ListofcolumnsofthetablekeyIdentifier_1
Name
Code
票号
票号
身份证号
身份证号
2.1.1.11.3ListofalldependenciesofthetablekeyIdentifier_1
Name
Code
ClassName
Relationship_1_PK
Relationship_1_PK
Index
2.1.1.12ListofindexesofthetableRelationship_1
Name
Code
Unique
Cluster
Primary
ForeignKey
AlternateKey
Relationship_1_PK
Relationship_1_PK
X
X
Relationship_1_FK
Relationship_1_FK
X
Relationship_2_FK
Relationship_2_FK
X
2.1.1.12.1CardoftheindexRelationship_1_PKofthetableRelationship_1
Name
Relationship_1_PK
Code
Relationship_1_PK
Unique
Yes
Cluster
No
Primary
Yes
ForeignKey
No
AlternateKey
No
Table
Relationship_1
2.1.1.12.2CardoftheindexRelationship_1_FKofthetableRelationship_1
Name
Relationship_1_FK
Code
Relationship_1_FK
Unique
No
Cluster
No
Primary
No
ForeignKey
Yes
AlternateKey
No
Table
Relationship_1
八、心得体会
通过这次数据库课程设计,使我们真正的体会到了数据库的重要性,同时也发现了许多问题需要深入的学习,发现了许多不足之处,以后应该对每个知识点都详细仔细的学习。
在学习中发现问题并解决问题,在实践中不断地学习,只有实践了,才能知道在以后的学习中,应该多注意哪个方面的知识。
以便于更好的学习接受理解知识。
这次设计也使我们体会到了设计数据库的辛苦,虽然在这个过程中遇到了许多困难,但是我认为这是对我们本身的历练,我们还需要不断地完善自我。
为我们的目标努力,加油。
实习成绩评定
指导教师意见:
签章
年月日