简体   繁体   English

来自不同数据库模式的表的 ERD

[英]ERD for tables from different database schemas

I have got various database schemas on a server in oracle sql and when I run the database sql modeler to get the ERD diagram it's showing me the table connections within the different database schemas only and not across tables in different schemas.我在 oracle sql 中的服务器上有各种数据库模式,当我运行数据库 sql 建模器以获取 ERD 图时,它仅向我显示不同数据库模式中的表连接,而不是跨不同模式中的表。 However, I was asked to pull out data from tables which have common keys for joining from the various databases schemas.但是,我被要求从具有用于连接各种数据库模式的公共键的表中提取数据。 However, the ERD diagram is not showing these connections.但是,ERD 图并未显示这些连接。 Is there any way one can identify which tables from the various schemas have common primary/foreign keys and can be connected?有什么方法可以识别各种模式中的哪些表具有共同的主键/外键并且可以连接?

It all depends on what ERD modeler you are using and whether you made the constraints across databases explicit or not.这完全取决于您使用的是什么 ERD 建模器,以及您是否使跨数据库的约束显式。

If you're not seeing them, you need to figure out which of these is true: is it the ERD modeler that can't show the constraints, or are the constraints actually missing.如果您没有看到它们,您需要弄清楚哪些是正确的:是 ERD 建模器无法显示约束,还是实际上缺少约束。

If your modeler can show inter-database constraints, then add them in and you'll see them.如果您的建模者可以显示数据库间约束,那么将它们添加进去,您就会看到它们。

(If you want a more specific answer, show part of the schema with a table that has a inter-schema constraint.) (如果您想要更具体的答案,请使用具有模式间约束的表显示部分模式。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM