这张图表中的表是链接到员工表的
桌子应主要链接到员工表。这很好吗?我需要使用外国钥匙与员工建立联系。拥有这么多外国钥匙是好习惯吗?他们放置正确吗?如果不是,我该怎么办。提前致谢。
我完全是陌生的,我对自己在做什么没有任何线索。请pls hlp
The tables should be linked mainly towards the employee table. Is this fine? I need to make connection to employee using foreign keys. Is it good practice to have this many foreign keys? Are they placed correctly? If not what should I do. Thanks in advance.
I am completely new to this and I don't have a clue as to what I am doing. pls hlp
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最好在 new_table 和员工之间进行多一关系,
就像您所做的那样:每个员工都有许多new_table,每个New_table都有很多员工(许多员工) -to-to-to)
您可以在此处绘制此关系,例如 image 在这里
或者
您只需绘制关系> ----<
it will be better to make the relation many-to-many between new_table and employee
as you are doing: every employee has many new_table and every new_table has many employees SO (many-to-many)
you can draw the table between this relation like the image here
or
you can just draw the relation >---<