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.
在我的数据库中,我有一个包含唯一 ID 的项目表和一个捆绑表,其中包含多个项目。每个捆绑包也有一个唯一的 ID。要创建捆绑包,我是否使用一个表来为它所在的每个捆绑包复制一个项目并为其提供一个捆绑包 ID,该捆绑包 ID 连接到捆绑包表?这似乎效率低下。
这取决于您的关系的确切类型: