發表文章

SWI-Prolog 1.2

SWI-Prolog 1

[1031 - 資料庫管理概論] Chapter 6 Introduction to SQL

圖片

[1031 - 資料庫管理概論] Chapter 4 Database design

圖片

[1031 - 資料庫管理概論] Chapter 3 The Enhance E-R Model

圖片

[1031 - 資料庫管理概論] Chapter 2 Modeling Data in the Organization

圖片

[1031 - 資料庫管理概論] Chapter 1 The Database Environment and Development Process

圖片
Database: 有組織的收集具有邏輯且有關聯性的資料的地方。 Data: 關於一個物件或一件事的事實,並且在user 環境中很重要;可存取於電腦中,又稱原始資料。 結構化Data:資料形式相當簡單,例如:字串、數值、字元。 非結構化Data:資料形式較為複雜,例如:視訊、e-mail、文件……等等多媒體資料。 Information: 原始資料經處理過後,且可用來增進人類知識的資料。 將資料處理成資訊的兩種方法有:將資料置於上下文(context)中,以及:彙總資料,圖形化。 Metadata(詮釋資料): 對於終端使用者資料的說明與解釋。(該資料對於使用者來說,有何特性或屬性,例如:姓名、編號。) Data model: 圖形、系統化資料與資料之間的性質與關係。 Traditional File Processing Systems: 將資料以檔案的形式存取,各個系統獨立運作,並將檔案描述存放於程式中。 缺點: Program-data dependence (資料相依,程式包含所有會用到的資料。) Duplication of data Limited data sharing Lengthy development times (各系統各自獨立,無法利用已完成的東西) Expensive program mantainance (維護成本高) Database approch: 定義、產生與使用資料。利用Model設計資料庫。 常用:Entity-relationship model (個體關係模型, ER model) Entity: a person, a place, an object, an event, or a concept in the user enviroment acout which the organization wishes to maintain data. (組織用來管理資料的個體) Attribute: user 對 entity 有興趣的資料。 Relationship: entity 與 entity 之間的關聯(一對一,一對多,多對多)。 優點: 1. Program-data independ