Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/78.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Oracle SQL Developer中找到引用表和引用表_Sql_Oracle - Fatal编程技术网

如何在Oracle SQL Developer中找到引用表和引用表

如何在Oracle SQL Developer中找到引用表和引用表,sql,oracle,Sql,Oracle,如何使用简单脚本在Oracle SQL Developer中查找引用表和引用表如果您指的是外键约束,可以使用以下查询: select a.table_name "PARENT", b.table_name "CHILD" from user_constraints a, user_constraints b where a.constraint_type = 'P' and b.constraint_type = 'R' and a.constraint_name = b

如何使用简单脚本在Oracle SQL Developer中查找引用表和引用表如果您指的是外键约束,可以使用以下查询:

select a.table_name "PARENT", b.table_name "CHILD"
  from user_constraints a, user_constraints b
  where a.constraint_type = 'P'
    and b.constraint_type = 'R'
    and a.constraint_name = b.r_constraint_name;

您可以使用信息\架构视图。@EugenePodskal信息\架构在PostgreSQL中。Oracle在用户视图、所有视图、dba视图中存储静态元数据,在V$中存储动态元数据。据我所知,信息模式已经过时。感谢您提供的信息。我只是认为大多数SQL兼容的DBMS都提供了它。您可以从字典中查询以查看整个数据字典,并从字典中选择*