MySQL在现有表中创建关系
我已经有一张大桌子,上面有很多列。现在,我尝试将表格在单独的较小表中拆分并创建一些关系。 例如:在我的情况下,部门名称直接写在员工表中。现在,我想将它们分开并创建关系(sub到d#),
如何将它们分开?并从员工表中删除部门名称?
I have already a big table with many columns. Now I try to split the table in separate smaller tables and create some relationships.
As an example: In my case the department name is directly written in the employee table. Now I want to split them and create the relationship (Sub to D#)
How can I separate them? and delete the department name out of the Employee table?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一个例子:
db<> gt;一些解释)。
An example:
db<>fiddle here (with some explanations).