資料冗餘發生在資料庫系統中,指的是一個欄位在多個表里重複出現。舉個例子,如果每條客戶購買商品的資訊都連帶記錄了客戶自身的資訊,這樣的資料冗餘可能造成不一致,因為客戶自身的資訊可能不一樣。[1] 資料冗餘會導致資料異常和損壞,一般來說設計上應該被避免。[2] 資料庫規格化防止了冗餘而且不浪費儲存容量。[3] 適當的使用外來鍵可以使得資料冗餘和異常降到最低。但是,如果考慮效率和便利,有時候也會設計冗餘資料,而不考慮資料被破壞的風險。[4]

參照 編輯

  1. ^ Jorge H. Doorn; Laura C. Rivero. Database integrity: challenges and solutions. Idea Group Inc (IGI). 2002: 4–5 [23 January 2011]. ISBN 978-1-930708-38-9. (原始內容存檔於2014-01-03). 
  2. ^ Peter Rob; Carlos Coronel. Database systems: design, implementation, and management. Cengage Learning. 2009: 88 [22 January 2011]. ISBN 978-1-4239-0201-0. (原始內容存檔於2014-01-03). 
  3. ^ I. T. L. Education Solutions Limited; Itl. Introduction to Information Technology. Pearson Education India. 2009: 522 [4 February 2011]. ISBN 978-81-7758-118-8. (原始內容存檔於2014-01-03). 
  4. ^ Allen G. Taylor. SQL for Dummies. For Dummies. 2 February 2010: 126–127 [1 February 2011]. ISBN 978-0-470-55741-9. (原始內容存檔於2014-01-03).