Visio 2003:连接数据库 ER 图中的 2 个表的关系箭头
我正在尝试对两个表 Orders 和 OrderDetails 之间的关系进行建模。我使用外键 OrderID 从 OrderDetails 绘制“关系”箭头到 Orders 表。但在关系箭头的 DatabaseProperties 中,我得到未知的父级和未知的子级。如何使用关系箭头正确连接两个表。
I am trying to model relationship between 2 tables Orders and OrderDetails. I draw "relationship" arrow from OrderDetails to Orders table with Foreign key OrderID. But in DatabaseProperties for relationship arrow, I get unknown parent and unknown child. How do I connect the 2 tables with relationship arrow properly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Orders
表的中间OrderDetails
表的中间。您还可以在“箭头定义选项卡”中选择要连接的字段。
无需提前指定外键,一旦与箭头连接,它就会自动添加。
Orders
tableOrderDetails
table.You can also select fields to connect in "Arrow definition tab".
No need to specify foreign key in advance, it will auto-add once you make connection with the arrow.
我也遇到了同样的问题,但我只需将关系箭头拖放到我想要建立关系的表即可解决。只需等待红色轮廓出现即可将关系箭头拖放到表格中。然后,将端点拖动到另一个表,观察相同的步骤。您还可以在“其他”类别下更改关系类型和基数。
I had the same problem too, but I managed to solve it by just dragging and dropping the relationship arrow to the tables where I want to have relationship. Just wait for the red outline before you'll gonna drop the relationship arrow to the table. And then, drag the end point to another table observing the same steps. You can also change the relationship type and cardinality under the "Miscellaneous" category.
我为此挣扎了一会儿,终于弄清楚我做错了什么。
再说一次,关键是只有在子表边框变成红色之后才让鼠标按钮离开!
I struggled a bit with this and finally figure out what I did wrong.
Again, the key is to let the mouse button go only after the child table border turn into red!