更新主键值的操作,该值由其它表的现有行中的外键列引用。在级联更新中,更新所有外键值以与新的主键值相匹配。
它们可以触发具有不同信息的级联更新。
They can trigger cascaded updates with different information.
本文介绍了一种通过增加触发器来模拟主外键,实现级联更新功能的方法。
The article shows one solution that we add triggers to simulate the primary key and foreign key, and then realize cascade update.
在 Book 类中放入 static belongsTo = Publisher,可以向关系添加另一个方面 —— 级联更新和删除。
Putting static belongsTo = Publisher in the Book class adds another dimension to the relationship — cascading updates and deletes.
应用推荐