数据及信息的分别.doc

上传人:cn****1 文档编号:560127362 上传时间:2023-08-30 格式:DOC 页数:6 大小:95.50KB
返回 下载 相关 举报
数据及信息的分别.doc_第1页
第1页 / 共6页
数据及信息的分别.doc_第2页
第2页 / 共6页
数据及信息的分别.doc_第3页
第3页 / 共6页
数据及信息的分别.doc_第4页
第4页 / 共6页
数据及信息的分别.doc_第5页
第5页 / 共6页
点击查看更多>>
资源描述

《数据及信息的分别.doc》由会员分享,可在线阅读,更多相关《数据及信息的分别.doc(6页珍藏版)》请在金锄头文库上搜索。

1、Lions College F.7 Computer Application Teaching Notes 2003-2004Topic 4 Databases 數據庫4.1 Concept and Terminology 概念及術語Data versus Information數據及信息的分別 data characteristics: independence, redundancy, integrity 數據特性:獨立性,冗餘,完整性Database terminology:Database, file, record, field, base table, table, column,

2、 row數據庫術語:數據庫,檔案,記錄,欄,庫登記表,表,欄,列Data versus Information 數據及信息的分別Data is defined as the symbols used to represent information to be processed by the computer. Data could be a set of no meaning random numbers, a phone number, or a string of words. It may or may not make sense when read.Information is

3、the interpreted data that can be comprehensible by people and contains meaning. 數據是一些符號用作表示電腦處理的信息,數據可以是一些沒有意義的隨機數,電話號碼,或一些字串,有意義或沒有意義均可。信息是一些經已翻譯有意義及可以理解的數據。 Data Characteristics數據特性1.Data Independence數據獨立性The structure of the database depends on the necessity of users. The setting is independent f

4、rom the application program. Users can search, reorganize, and retrieve data in the database. Also, data can be added, delete, and change without requiring change in programs.數據庫的實質結構獨立於用戶需求,其設定也獨立於應用程序。用戶可檢索和重新組織數據庫內的數據,然後提取資料。亦可隨意增加、删除或修訂數據,而不影響程序運作2.Data Redundancy 多餘數據User stores data in the dat

5、abase only require to store in one location. Storing the same field values more than once (unnecessarily) is referred to as data redundancy.每用戶儲存自己數據在數據庫,祇需在一個位置貯存,便可供不同用戶使用。儲存用樣數據多於一次便屬多餘數據(冗餘)。Three problems are caused by data redundancy. 1.Storing values multiple times wastes space. 2.When a fiel

6、d value changes, multiple occurrences need to be updated. 3.If we forget to change the values in any of the records, the database would then have inconsistent data.冗餘數據有三個缺點:1. 增加儲存時間及浪費儲存位置。2. 如修改數據,不同檔案的數據要隨之更新。3. 如忘記修改檔案內的數據,數據庫的數據便不協調。3.Data Integrity 數據完整性Data Integrity means the consistency of

7、 data. After processing or moving data, we need to maintain data integrity. It includes to validate the content of in the database, to compare and validate data between tables then update. 指數據的精確性及期望值的一致性,在數據移動或處理之後,在數據庫系統中要 維護數據完整性。包括確認各個數據區內容、數據區之間的校核、將一個文件或表格中的數據與另一個文件或表格進行比較,校對並進行確認。在經過處理之後, 數據庫

8、才被更新。Database Terminology數據庫術語Database 數據庫A database is a large repository of data. It can collect, index, store and display data systematically. It can also combine related data together. Normally database is controlled by a software package Database Management System (DBMS). Information is retriev

9、ed, edited and stored using commands.數據庫是一個儲存大量數據的儲存庫,能有系統地收集、分類、貯存和顯示數據,並能把相關的數據整理合併一起。通常是由數據庫管理系統控制(DBMS). When data is stored in a computer, it is stored in files. Before any data is stored in a database, a structure must be defined for the data file. For example, a student information data file

10、will consist the student name, class, class number, address, telephone, parent names etc. Different records represent different students similar to a table. Therefore, the data files in a database are also called base tables (tables). 數據儲存於電腦是以檔案型式儲存,數據儲存時,必須先設定數據檔案的結構。例如一個學生的資料數據檔案會包括學生的姓名,班級,班號,地址

11、,電話,家長姓名等資料。不同的記錄代表不同學生如表格型式表示,所以數據檔案亦稱為庫登記表(表)。Fields, Records and Tables 欄、記錄、表The database for Lions College can consist of a number of data files. For example, one file is used to store the employee personnel information, one for the students information, one for the students records, and for th

12、e school calendar.獅子會中學的數據庫包括不同的數據檔案,例如:其中一檔案是用作儲存僱員的個人資料,另一個儲存學生的資料,亦有一個儲存校曆表。There are five teachers in Lions College. They are stored in the file teacher.dbf as follows:假設獅子會有個教師,儲存於teacher.dbf 檔案的資料如下:Teacher TableRec#ClassNameAddress PhoneRecord 11AMr. Chan20 Abc Street 1234567Record 21BMiss Le

13、e130 Sai Yi Street2345678Record 31CMiss Wong226 Prince Road3456789Record 41DMiss Lau783 Hing Shing Road4567891Record 52AMr. Chan1 Nathan Road5678912 The above data appear in the form of a table with 5 rows and 4 columns. Thus a data file is also called a table. Each row corresponds to one record. Ea

14、ch column corresponds to the data in the same field. A record represents one teacher data. In each record, there are four fields, representing four pieces of information of a teacher. 上述的資料是用列欄的表形式排列,故數據檔案亦可稱為表。每列為一記錄,每欄儲存同一欄位數據。一個記錄代表一個教師的記錄。在每一記錄中,會有欄,代表一教師的資料。Visual FoxPro uses fixed length recor

15、ds. In designing the structure of a table, we need to specify the data type and the length of each field. The structure for the teacher.dbf table is depicted as follows:Visual FoxPro 用一個固定長度的記錄,在設計表的結構,要先決定數據的種類及記錄的長度,教師的數據表是用下列的結構:Structure for table teacher.dbfFieldField NameTypeWidth1CLASSCharacter32NAMECharacter103ADDRESSCharacter204PHONECharacter10The records in the data file teacher.dbf can be accessed through the field CLASS, NAME, ADDRESS, or PHONE. However, the field NAME n

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 生活休闲 > 社会民生

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号