阿摩線上測驗
登入
首頁
>
公職◆資料庫應用
>
96年 - 096年高等三級暨普通資料庫應用#50219
> 申論題
申論題
試卷:96年 - 096年高等三級暨普通資料庫應用#50219
科目:公職◆資料庫應用
年份:96年
排序:0
申論題資訊
試卷:
96年 - 096年高等三級暨普通資料庫應用#50219
科目:
公職◆資料庫應用
年份:
96年
排序:
0
題組內容
一、試解釋下列專有名詞:(每小題 5 分,共 20 分)
申論題內容
⑷ Referential Integrity Constraint
詳解 (共 1 筆)
詳解
提供者:nagoya
Referential Integrity Constraint 中文概意為參考性完整限制
假設兩個關聯R、S分別表示客戶與訂單
關聯S(訂單)參考至關聯R(客戶),那麼則表示當訂單新增時相對應的鍵值需要在客戶資料中有所對應
意思為外來鍵(foreign key)的定義,確保資料具有一致性,不會有虛假的資料出現。
另外當客戶資料刪除時,可以進行聯級(Cascade)操作,選擇是否要將相對的訂單資料移除
大部分資料庫管理系統預設為不會把資料移除
資料來源:
https://opentextbc.ca/dbdesign01/chapter/chapter-9-integrity-rules-and-constraints/
https://www.ibm.com/docs/en/db2/11.5?topic=concepts-primary-key-referential-integrity-check-unique-constraints