欢迎来到天天文库
浏览记录
ID:36677433
大小:151.72 KB
页数:49页
时间:2019-05-13
《db2学习总结文档》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、`1.Adatabasemanagementsystemprovidesasetofintegrateddatamanagementservicesortoolswhichareusedtomaintainandmanagelogicalgroupingsofdataorinformation.Inthisbranchofmathematics,atableiscalledarelation.2.Codd'soriginaltheorywasbasedon12principles.(1)Thefirstist
2、hatalldatainanRDBMSisstoredintables.(2)Anotherprincipleisthatyouneedalanguagetoretrieveormanipulatedatainthesetables.ThislanguageisknownasSQLandispartoftherelationaltheory.3.Atableconsistsofcolumnsandrows.Columnsaretheattributesoftheentity.Theyarethesamefor
3、everyparticularinstanceoftheentity.Everyparticularinstanceoftheentityisarow.Rowsarenotusuallystoredinanyparticularorder.Thereisonlyonevalueateveryrowandcolumnpositioninatable.Thismeansthatalldatavaluesareatomic.4.Theremustbesomewaytoidentifyuniquelyjustonei
4、nstanceorrowofatableinordertomanipulatethedatainit.Theuniquekeywillallowyoutodojustthat.5.TherearetwotermsyoumayheartodescribeSQL.Thefirstisnon-navigational.ThismeansthatyouonlyneedtotellDB2,throughSQL,whatdatayouwant.YoudonotneedtospecifyhowDB2istogetthatd
5、ata.Byusingtheoptimizer,DB2determinesthebestaccesspath.Forexample,itdecideswhethertouseanindextoretrievedata.SQLisalsoanon-procedurallanguage.AprocedurallanguageisaprogramminglanguagesuchasCorCOBOL.SQLisnotaprogramminglanguage.Itdoesnotdoloopingorgothroughe
6、xtensiveif-then-elsestepsonerecordatatime.SQLhandlesasetofrecordsinatableandcanbeembeddedintoaprogramminglanguagetotakeadvantageofthecapacityofthelanguagetocarryoutprocedurallogiconthatdata.6.DataManipulationLanguage(DML)allowsyoutoretrieveandmanipulatedata
7、.SELECTisyourbasicreadstatement.BothSELECTandUPDATEworkatthecolumnlevel.INSERTandDELETEfunctionattherowlevel.DataDefinitionLanguage(DDL)allowsyoutoCREATEandmaintainthephysicaldatastructuresorobjectsinyourdatabase.YouCREATEatableorindex.TheALTERstatementallo
8、wsyoutoaddacolumntotheendofatable.Ifyounolongerneedanobject,youcansimplyDROPthatobject.ControlLanguageprovidesthecontrolstatementsthatgoverndatasecurity.YoumustbeauthorizedtousevariousobjectsinDB2.Youn
此文档下载收益归作者所有