- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
优化myschool数据库设计(Optimization design of myschool database)
优化myschool数据库设计(Optimization design of myschool database)
Chapter 1 database design
Database design is the process of planning and structuring the relationships between the data entities in the database and the data entities.
Project development needs to be analyzed by requirement analysis, outline design, detailed design, code compiling, running test and package release.
In the requirements analysis phase, the general steps for designing a database are as follows.
1 collect information.
2 identifier entity.
3 identifies the properties of each entity.
4 identifies relationships between entities.
In the outline design phase and the detailed design phase, the general steps for designing the database are as follows.
1 draw E-R diagram.
2, E-R diagram is translated into database model diagram.
3 application of three paradigms normalization table design.
Three paradigms
The goal of the first paradigm is to ensure atomicity of each column.
The second paradigm is based on the first paradigm, with the goal of ensuring that each column in the table is related to the primary key.
The third paradigm is based on the second paradigm, with the goal of ensuring that each column is directly related to the primary key column.
The process of removing redundant data from relational database tables is called normalization.
The second chapter is the realization of database
Create database
grammar
Create dataBase database name
On primary
(
Data file details
)
Log on
(
Log file details
)
The specific parameters of the file are as follows.
Name= logical file name,
FileName = filename in room,
Size = size,
MaxSize = maximum capacity
FileGrowth = growth
Delete the syntax of the database. Drop dataBase database name
Create table
grammar
Create table table name
(
Column 1 data type column features
Column 2 data type column features
)
The column features include whether the column is empty, whether it is an identity column, whether it has default values, and whether it is a primary key.
Delete
您可能关注的文档
- 中国舞动作规格要领(Chinese dance movement specification Essentials).doc
- 中国舞等级考试教材第一级教案(China dance grade examination materials first class teaching).doc
- 中国行政区划记忆口诀(Chinese administrative division memory formula).doc
- 中国近年来产生严重后果的十大网络谣言(Ten Internet rumors China have serious consequences in recent years.).doc
- 中国重大建设工程的生态问题论文(The ecological problems of the major construction projects of the Chinese).doc
- 中国石油北京《钻井工程(含课程设计)》第一阶段在线作业(Beijing Chinese petroleum drilling engineering (including curriculum design) the first stage of online homework).doc
- 中国铁建总公司所属单位(China Railway Construction Corporation subordinate units).doc
- 中国铁路客运专线简介(China Railway Passenger Dedicated Line Profile).doc
- 中国铁道工程局总汇(China Railway Engineering Bureau confluence).doc
- 中国银行企业文化的缺失(The lack of Chinese bank enterprise culture).doc
文档评论(0)