资源描述:
《independence独立性》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、F6ComputerApplicationTopic4.1ConceptsandTerminology:DataCharacteristics:independence,redundancy,integrity數據特性:獨立性、冗餘、完整性Function-STR,ASCExercise8StudentName:_______________________()Independence獨立性Indatabasesystem,normallythedatabasemanagementsystem(DMS)willinch
2、argeofretrievingandstoringofdata.DifferentapplicationprogramcanretrievedatathroughDMSanddonothavetocareaboutthechangingofsoftwareandhardwareinthesystem.TheycansharethedatathroughDMS.在數據庫中,一般存取時的細節是由數據庫管理系統管理,應用程序不必了解數據庫的軟件和硬件的改變。可透過數據庫管理系統作為介面存取數據,達分享數據目的。Redund
3、ancy冗餘Inacompany,differentdepartmentscansharethesamedatabasesystem.Itcanminimizetheredundancydata.However,undercertainsituations,someredundancydatawillmakedataprocessingeasytohandle.在同一公司中,不同的部門使用同一個數據庫存取數據,可以減少數據的重覆。但在某些情況下,少數數據的重覆可以令處理上更方便。Integrity完整性Therelat
4、ionshipofdatabasesindifferentfileshadtobeevaluated.Repetitionofdatashouldbeavoided.Whenupdatedata,ithastobesurethatdatainrelatedfileshavetobeupdatedtomaintaintheintegrityofdata.數據庫內各個檔案的關係須經過分析後確立,以便集中處理。在最少重複的情況下,即使是多個檔案共用的數據,在需要更新時,亦應全部更新,以免在個別檔案中遺漏,導致數據不一致的情況
5、。9e6265d32e9ad65a0b7c84747b79d20e3.docF6ComputerApplicationTopic4.1ConceptsandTerminology:DataCharacteristics:independence,redundancy,integrity數據特性:獨立性、冗餘、完整性Function-STR,ASCExercise8STRReturnstheequivalentcharacterstringofaspecifiednumericexpression.將數字變為字符串Fun
6、ction功能Result結果1N=200?'Thenumberofstudentsinourschoolis'+Noperator/operandtypemismatch操作碼/操作數種類不符2N=200N=STR(N,3)?'Thenumberofstudentsinourschoolis'+NThenumberofstudentsinourschoolis2003I=1234J=567?STR(I,4)?STR(J,4)1234567Ifspecifiednumberismorethanthelengthofst
7、ring,padsleadingspacestoreturnstring如函數內的數字較字符串的長度為大,則前面的部份會留空位4I=123456789?STR(I,4)?STR(I,6)**********Ifspecifiednumberislessthanthelengthofstring,itwillreturnstringofasterisks5J=24.3?STR(J,4)?STR(J*2,4)2449Ifdecimal,itwillroundtothenearestinteger.如小數,會用4寫5入轉為整
8、數6J=1234.567?STR(J,7,2)1234.57Thesecondparameterspecifiesthetotalnumberofcharactersinthereturnstring.Thethirdparameterspecifiesthenumberofdecimalplaces.第2個函數表示字符串的長度,