这张图表中的表是链接到员工表的

发布于 2025-01-17 15:54:20 字数 199 浏览 3 评论 0原文

“在此处输入图像说明”

桌子应主要链接到员工表。这很好吗?我需要使用外国钥匙与员工建立联系。拥有这么多外国钥匙是好习惯吗?他们放置正确吗?如果不是,我该怎么办。提前致谢。

我完全是陌生的,我对自己在做什么没有任何线索。请pls hlp

enter image description here

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诠释孤独 2025-01-24 15:54:20

最好在 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 >---<

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文