Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以破坏表的复合键并将其中一个用作其他表的主键?如果是,那么请告诉我我该怎么做?
通常,当没有单独的列包含唯一值时,您会使用复合键。由于主键必须是唯一的,因此您可能不能只使用其中一列。