数据库系统英第三版课件2012版 Database Systems(2).ppt

数据库系统英第三版课件2012版 Database Systems(2).ppt

ID:51622825

大小:1.46 MB

页数:74页

时间:2020-03-26

数据库系统英第三版课件2012版 Database Systems(2).ppt_第1页
数据库系统英第三版课件2012版 Database Systems(2).ppt_第2页
数据库系统英第三版课件2012版 Database Systems(2).ppt_第3页
数据库系统英第三版课件2012版 Database Systems(2).ppt_第4页
数据库系统英第三版课件2012版 Database Systems(2).ppt_第5页
资源描述:

《数据库系统英第三版课件2012版 Database Systems(2).ppt》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、2TheRelationalModelofDataAnOverviewofDataModelsBasicsoftheRelationalModelDefiningaRelationSchemainSQL*AnAlgebraicQueryLanguageConstraintsonRelations2.1AnOverviewofDataModelsAdatamodelisanotation(符号)fordescribingdataorinformation.Conceptualmodel(概念模型)Databasedatamodel:thedescrip

2、tiongenerallyconsistsofthreeparts:Structureofthedatarelationalmodel=tables;networkandhierarchicalmodels=graphs/trees.OperationsonthedataConstraints(约束)onthedata2.1AnOverviewofDataModelsImportantDataModels:TheRelationalModel,includingobject-relationalextensions;TheSemistructured

3、-dataModel,includingXML(扩展标记语言)andrelatedstandards;NetworkandHierarchicaldataModelsHigh-LevelDataModelTheEntity/RelationshipModelObjectDefinitionLanguagetitleyearlengthgenreGoneWiththeWind1939231dramaStarWars1977124sciFiWayne’sWorld199295comedy2.2BasicsoftheRelationalModelRelat

4、ion:Therelationalmodelgivesusasinglewaytorepresentdata.Atwo-dimensionaltablecalledarelation.Eachrelationhasaname.Movies2.2BasicsoftheRelationalModelWhyRelations?Providesasimple,limitedapproachtostructuringdata.Providesalimited,yetuseful,collectionofoperationsondata.Theyallowust

5、oimplementlanguages,suchasSQL,thatenabletheprogrammertoexpresstheirwishesataveryhighlevel.2.2.1AttributesAttribute(属性):Thecolumnsofarelationarenamedbyattributes.Eachattributeofarelationhasaname,describesthemeaningofentriesinthecolumnbelow.Anytwoattributesofarelationcan’thavesam

6、ename.titleyearlengthgenreGoneWiththeWind1939231dramaStarWars1977124sciFiWayne’sWorld199295comedyMoviesAttributes(columnheaders)2.2.2Schemas(模式)Relationschema=relationnameandthesetofattributes.Example:Movies(title,year,length,genre)orMovies(title:string,year:integer,length:inte

7、ger,genre:string)Wecanreordertheattributesofarelation,withoutchangingtherelation.Example:Movies(year,title,length,genre)2.2.2Schemas(模式)Relationaldatabaseschema=setofallrelationschemasinthedatabase.Relationaldatabase=collectionofrelations.titleyearlengthgenreGoneWiththeWind1939

8、231dramaStarWars1977124sciFiWayne’sWorld199295comedy2.

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。