【发布时间】:2015-09-18 20:38:11
【问题描述】:
假设您有以下模型。
Book has Articles (Article has foreign key to Book)
Article has Images (Article has upto #max number of images)
Image also has a foreign key to Book.
(编辑某些图片包含在书中但不归文章所有)
假设您将一篇文章从 book1 移到 book2。
您希望文章中的图片也指向 book2。
首选的处理方式是什么?
【问题讨论】:
标签: mysql sql database postgresql