1、数据库电子版实习报告 说 明一、 实习报告的主要内容:1. 个人完成实习内容和任务的基本情况。2. 对实习场所生产、经营管理及技术措施上的优、缺点的分析和建议。3. 实习的主要收获和存在的问题。4. 个人在实习中的主要优、缺点。5. 通过实习的检验,提出对过去所学课程和各个教学环节的意见。二、 实习报告要求文字简明扼要,书写清晰。实习报告要求在实习结束前完成,然后交指导教师审阅并评定成绩。三、 实习结束后,指导教师填写成绩单,实习报告收齐后统一交学院存档。实习名称数据库原理课程设计实习地点信息技术学院数据库实验室实习起止时间2012年6月25日2012年6月29日实习报告一. 课题名称二. 系
2、统简要介绍三. 用户需求四. 使用PowerDesigner设计CDM截图五. 使用PowerDesigner设计PDM截图六. 生成的数据库文件截图七. 生成的模型文档八. 实习的心得和体会一、课题名称:车站售票管理系统二、系统简要介绍: 汽车售票管理系统主要用于车站日常的票务处理,汽车售票管理系统在正常运行中需要对使用该系统的主要是汽车站售票人员、汽车站售票工作的管理人员与系统管理员。未达到操作过程中的直观、方便、实用、安全等要求,我们组在这个系统中采用模块化程序设计的方法,便于系统功能的组合和修改,以及扩充和维护。四、 用户需求(一)根据需求分析,本系统要实现以下的基本功能。1登录功能:
3、分为汽车站售票人员和系统管理员两种权限登录。用户通过输入不同用户名和密码进行身份验证,系统通过用户名和密码判断不同用户的权限从而确定该用户可以执行的操作,2车票信息查询功能:由汽车站的普通售票人员通过不同的检索入口,查询车票信息,并进行排序。3修改功能:汽车站售票人员、汽车站售票工作的管理人员能够实现修改自身的用户名和密码,系统管理员则能够实现系统用户与普通用户的添加,修改普通用户与系统管理员的密码,以此确保该系统能够安全操作,避免不必要的损失。4汇总功能:对当天车票的信息进行汇总(二)处理过程车票汇总:工作人员将一天所售出的票进行统计,包括票数,票类,形成确定的车票记录。查询:将顾客需要的车
4、票信息输入系统,并查询其是否可供应。查询顾客信息:为订票所设,将顾客的准确信息记录为其预订车票。处理买票:进行买票交易,把顾客需要的票售出并在系统中作相应记录,确定车票记录。处理订票:进行订票交易,工作人员为顾客预定其所需车票,并在系统中作相应记录,确定订票记录。处理退票:进行退票交易,工作人员为顾客办理退票手续,并在系统中作相应记录确定退票记录。四、使用PowerDesigner设计CDM截图五 使用PowerDesigner设计PDM截图六、生成的数据库文件截图七、生成的模型文档List of table indexesNameCodeUniqueClusterPrimaryForeign
5、 KeyAlternat KeyTable顾客_PK顾客_PKXX顾客车票_PK车票_PKXX车票订票_PK订票_PKXX订票订票_FK订票_FKX订票订票2_FK订票2_FKX订票换票_PK换票_PKXX换票换票_FK换票_FKX换票换票2_FK换票2_FKX换票售票_PK售票_PKXX售票售票_FK售票_FKX售票售票2_FK售票2_FKX售票退票_PK退票_PKXX退票退票_FK退票_FKX退票退票2_FK退票2_FKX退票Relationship_1_PKRelationship_1_PKXXRelationip_1Relationship_1_FKRelationship_1_FKX
6、Relationship_1Relationship_2_FKRelationship_2_FKXRelationship_11.1.1 List of table keysNameCodeTableIdentifier_1Identifier_1顾客Identifier_1Identifier_1车票Identiier_1Identifier_1订票Identifier_1Identifier_1换票Identifier_1Identifier_1售票Identifier_1Identifier_1退票Identifier_Identifier_1Relationship_11.1.2 Li
7、st of referencesNameCodeParent TableChild TableRelationship_1Relationship_1车票Relationship_1Relationship_1Relationship_2顾客Relationship_1订票订票车票订票订票订票2顾客订票换票换票车票换票换票换票2顾客换票售票售票顾客售票售票售票2车票售票退票退票顾客退票退票退票2车票退票1.1.3 List of tablesNameCode顾客顾客车票车票订票订票换票换票售票售票退票退票Relationship_1Relationship_11.2 Multi-dimensi
8、onal Diagrams Objects2 Tables2.1 Model level tables2.1.1 Table Relationship_12.1.1.1 Card of table Relationship_1NameRelationship_1CodeRelationship_1DBMSMicrosoft SQL Server 20002.1.1.2 Code preview of table Relationship_1alter table Relationship_1 drop constraint FK_RELATION_RELATIONS_车票goalter tab
9、le Relationship_1 drop constraint FK_RELATION_RELATIONS_顾客goif exists (select 1 from sysindexes where id = object_id(Relationship_1) and name = Relationship_1_FK and indid 0 and indid 0 and indid 255) drop index Relationship_1.Relationship_2_FKgoif exists (select 1 from sysobjects where id = object_
10、id(Relationship_1) and type = U) drop table Relationship_1go/*=*/* Table: Relationship_1 */*=*/create table Relationship_1 ( 票号 char(20) not null, 身份证号 char(18) not null, constraint PK_RELATIONSHIP_1 primary key (票号, 身份证号)go/*=*/* Index: Relationship_1_FK */*=*/create index Relationship_1_FK on Rela
11、tionship_1 (票号 ASC)go/*=*/* Index: Relationship_2_FK */*=*/create index Relationship_2_FK on Relationship_1 (身份证号 ASC)goalter table Relationship_1 add constraint FK_RELATION_RELATIONS_车票 foreign key (票号) references 车票 (票号)goalter table Relationship_1 add constraint FK_RELATION_RELATIONS_顾客 foreign k
12、ey (身份证号) references 顾客 (身份证号)go2.1.1.3 List of diagrams containing the table Relationship_1NameCodeDiagram_1Diagram_12.1.1.4 List of outgoing references of the table Relationship_1ameCodeForeign Key ColumnsRelationship_1Relationship_1票号Relationship_1Relationship_2身份证号2.1.1.5 List of all dependencie
13、s of the table Relationship_1NameCodeClass NameRelationship_1Relationship_1ReferenceRelationship_1Relationship_2Reference2.1.1.6 List of extended attributes of the table Relationship_1NameData TypeValueTarget NameExtCktNotForReplication(Boolean)falseMicrosoft SQL Server 20002.1.1.7 List of columns o
14、f the table Relationship_1NameCode票号票号身份证号身份证号2.1.1.8 Column 票号 of the table Relationship_12.1.1.8.1 Card of the column 票号 of the table Relationship_1Name票号Code票号Data Typechar(20)MandatoryYes2.1.1.8.2 Check constraint name of the column 票号 of the table Relationship_1CKC_票号_RELATION2.1.1.8.3 Check of
15、 the column 票号 of the table Relationship_1Minimum valueMaximum valueDefault valueUnitFormatUppercaseNoLowercaseNoCannot modifyNoList of values2.1.1.8.4 Server validation rule of the column 票号 of the table Relationship_1%MINMAX% and %LISTVAL% and %RULES%2.1.1.8.5 List of all dependencies of the table
16、 column 票号NameCodeClass Name?Reference Join票号票号Index Column票号票号Index ColumnIdentifier_1Identifier_1Key2.1.1.8.6 List of extended attributes of the table column 票号NameData TypeValueTarget NameExtCkcNotForReplication(Boolean)falseMicrosoft SQL Server 2000ExtDeftConstName(String)Microsoft SQL Server 20
17、00ExtIdentityIncrement(Integer)Microsoft SQL Server 2000ExtIdentitySeed(Integer)Microsoft SQL Server 2000ExtIdtNotForReplication(Boolean)falseMicrosoft SQL Server 2000ExtNullConstName(String)Microsoft SQL Server 20002.1.1.9 Column 身份证号 of the table Relationship_12.1.1.9.1 Card of the column 身份证号 of
18、the table Relationship_1Name身份证号Code身份证号Data Typechar(18)MandatoryYes2.1.1.9.2 Check constraint name of the column 身份证号 of the table Relationship_1CKC_身份证号_RELATION2.1.1.9.3 Check of the column 身份证号 of the table Relationship_1Minimum valueMaximum valueDefault valueUnitFormatUppercaseNoLowercaseNoCan
19、not modifyNoList of values2.1.1.9.4 Server validation rule of the column 身份证号 of the table Relationship_1%MINMAX% and %LISTVAL% and %RULES%2.1.1.9.5 List of all dependencies of the table column 身份证号NameCodeClass Name?Reference Join身份证号身份证号Index Column身份证号身份证号Index ColumnIdentifier_1Identifier_1Key2.
20、1.1.9.6 List of extended attributes of the table column 身份证号NameData TypeValueTarget NameExtCkcNotForReplication(Boolean)falseMicrosoft SQL Server 2000ExtDeftConstName(String)Microsoft SQL Server 2000ExtIdentityIncrement(Integer)Microsoft SQL Server 2000ExtIdentitySeed(Integer)Microsoft SQL Server 2
21、000ExtIdtNotForReplication(Boolean)falseMicrosoft SQL Server 2000ExtNullConstName(String)Microsoft SQL Server 20002.1.1.10 List of keys of the table Relationship_1NameCodePrimaryIdentifier_1Identifier_1X2.1.1.11 Key Identifier_1 of the table Relationship_12.1.1.11.1 Card of the key Identifier_1 of t
22、he table Relationship_1NameIdentifier_1CodeIdentifier_1TableRelationship_12.1.1.11.2 List of columns of the table key Identifier_1NameCode票号票号身份证号身份证号2.1.1.11.3 List of all dependencies of the table key Identifier_1NameCodeClass NameRelationship_1_PKRelationship_1_PKIndex2.1.1.12 List of indexes of
23、the table Relationship_1NameCodeUniqueClusterPrimaryForeign KeyAlternate KeyRelationship_1_PKRelationship_1_PKXXRelationship_1_FKRelationship_1_FKXRelationship_2_FKRelationship_2_FKX2.1.1.12.1 Card of the index Relationship_1_PK of the table Relationship_1NameRelationship_1_PKCodeRelationship_1_PKUn
24、iqueYesClusterNoPrimaryYesForeign KeyNoAlternate KeyNoTableRelationship_12.1.1.12.2 Card of the index Relationship_1_FK of the table Relationship_1NameRelationship_1_FKCodeRelationship_1_FKUniqueNoClusterNoPrimaryNoForeign KeyYesAlternate KeyNoTableRelationship_1八、心得体会通过这次数据库课程设计,使我们真正的体会到了数据库的重要性,同时也发现了许多问题需要深入的学习,发现了许多不足之处,以后应该对每个知识点都详细仔细的学习。在学习中发现问题并解决问题,在实践中不断地学习,只有实践了,才能知道在以后的学习中,应该多注意哪个方面的知识。以便于更好的学习接受理解知识。这次设计也使我们体会到了设计数据库的辛苦,虽然在这个过程中遇到了许多困难,但是我认为这是对我们本身的历练,我们还需要不断地完善自我。为我们的目标努力,加油。实习成绩评定指导教师意见:签章年 月 日
copyright@ 2008-2023 冰点文库 网站版权所有
经营许可证编号:鄂ICP备19020893号-2