[英]Can there be two one-to-one relationships between the same tables?
這是行不通的,因為最初,您無法在不違反 FK 約束的情況下向 Order 或 Publication 表添加任何內容。 您最好將 Order 和 Publication 表組合成一個具有 orderId 和 publicationId 復合主鍵的表。 這將正確地表達給定順序和發布配對是唯一的這一事實。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.