文字——ERD——具體資料庫操作
ERD圖:簡明的表示了各個表,表屬性,表關系 方便于連接操作(join)
1.Entity:一張表為一個entity
2.Attribute: PK(primary key),FK(foreign key),common key. 一個屬性為一個key
3.Relationship:
1.數量:圈(0,M),直線(1,M),
2.強弱(Relationship strength): 強關系_表中主鍵都是其他表的主鍵(所有或一部分)
其余全為弱關系
關鍵概念:Bridge table—兩個物體為多對多關系,不能直接表示,需要通過一張Bridge table來過渡,必定為強關系, Bridge table的兩個主鍵即為關聯兩表的主鍵—PK,FK1:,, PK,FK2:.
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/26711.html
標籤:其他
上一篇:怎么往mysql表里添加資料
