例如,我有兩個表名爲Manager_Order
和Book_Inventory
。屬性A基於屬性B(Microsoft SQL Server 2014)
Manager_Order(
ID (PK),
Book_Name,
Quantity (Attribute A)
)
Book_Inventory(
ID (PK),
Book_Name (FK on Manager_Order),
Quantity (Attribute B)
)
每次經理作出命令,我想自動的數量在Book_Inventory
更新。