第1页共6页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第1页共6页Database數據庫Asetoffilesortablescontainingdata,relatingtoanapplicationorasystem.iscalledadatabase.Dataarecentrallystoredinasinglefileorasetoffilestokeepdataduplicationtoaminimumandreducedthestoragespace.Traditionaldatabasesareorganizedbyfields,records,andfiles.在應用軟件或系統內包含數據一組的檔案或表稱為數據庫。數庫會中央儲存於一個或多個檔案內使數據重覆的情況減至最低,節省儲存空間。傳統上數據庫是由欄,記錄及檔案組成。Field欄Afieldisasinglepieceofinformationorindividualdataiteminthefileortable.Indatabasemanagementsystems,columnisanothernameforfield.欄是檔案或表內的個別資料或數據,在數據庫內Column亦即是field。Record記錄Arecordisonecompletesetoffields,thegatheringofalldatainallthefields.記錄是一完整的欄,包括各欄的數據而成。FileAfileisacollectionofrecords.檔案是由多個記錄組成。TableTableareallfieldsaboutanobjectcollectedtogethertoformatabletostoredata.Datainthetablearearrangedinrowsandcolumns.Inrelationaldatabasemanagementsystems,allinformationisstoredintheformoftables.表是將有關項目的欄組成去儲存數據,在表內的數據會以列和欄排列,在關係數據庫中,所有資料均以表方式去儲存。第2页共6页第1页共6页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第2页共6页DatabaseManagementSystem(DBMS)數據庫管理系統Toaccessinformationfromadatabase,youneedadatabasemanagementsystem(DBMS).Thisisacollectionofprogramsthatenablesyoutoenter,organize,andselectdatainadatabase.在數據庫中獲取資料,我們需要數據庫管理系統,數據庫管理系統包括一系列的程式容許你去輸入,組織,選擇數據。Componentsofdatabasemanagementsystem數據庫系統的組成部份,(i)SoftwarePrograms軟件程式Adatabasemanagementsystem(DBMS)canbeanextremelycomplexsetofsoftwareprograms.Itservesthefollowingfunctions:1.setupdatabasestructure2.controlstheorganisation,storageandretrievalofdata(fields,recordsandfiles)inadatabase.3.processthestoreddatainadatabase4.controlsthesecurityandintegrityofthedatabase.5.acceptsrequestsfordatafromtheapplicationprogram6.instructstheoperatingsystemtotransfertheappropriatedata.7.providesviewsofthedatafordifferentusers8.providesanenvironmentforprogramdevelopment.數據庫管理系統可以是一些極為複雜的軟件程式,可提供下列功能:1.建立數據庫結構。2.管理組織,儲存及提取數據庫內數據。3.處理數據庫內數據。4.控制數據庫內的保安及保持數據完整。5.提供數據給應用軟件。6.提示操作系統去傳送數據。7.向不同使用者提供視圖。8.提供發展程式的環境。第3页共6页第2页共6页编号:时间:2021年x月x日书山有路勤为径,学海无涯苦作舟页码:第3页共6页(ii)BaseTable(DataDictionary)庫登記表Basetable(DataDictionary)isarepositoryofinformationaboutthetablesinadatabase.Itservesthefollowingfunctions:1.managingallthedataelements2.containsinformationincludestablenames,fieldnames,fieldvalidationinformation,datatypes,datasizesandindexexpressions.3.providesaconvenientwaytomanagetheinformation.4.providesaconvenientwaytokeeptrackofthechangesintablestructure,indexexpressionetc.庫登記表是數據庫內儲存資料表,可提供下列功能:1.管理所有數據元素。2.儲存數據庫內資料,包括表名稱,欄名,欄校驗資料,數據種類,數據大小及索引語句3.提供一個方便管理資料方法4.提供一個方便去追蹤表中更改的資料。(iii)Deriveddatum衍生數據Insomesituation,thedataofsomeindividualdataitemisdependentontwoindependentdataandwedon’tneedtobestoredinthedatabase.Forexample,thesalaryofastaffdependsonthenumberofdaysworkedinamonthandthedailyw...