将 SQL 查询转换为可视化图表的工具?

cor*_*ory 1 sql oracle oracle11g oracle-sqldeveloper

我有一堆 Oracle SQL 查询,我想为其准备一些可视化模型/图表。例如,显示所有表、连接和连接条件。

存在这样的工具吗?

tha*_*ith 5

是的,Oracle SQL Developer,它包含在您的 Oracle 数据库许可证中...换句话说,它是免费的。

额外的好处是,它是 Java 的,因此可以在 Windows、OS X 和 Linux 上运行。

打开一个连接,这将为您提供一个 SQL 工作表。

输入您的查询,例如:

select b.extra_column
      ,b.department_id
      ,b.department_name
      ,b.manager_id
      ,b.location_id
      ,c.employee_id
      ,c.first_name
      ,c.last_name
      ,c.email
      ,c.phone_number
      ,c.hire_date
      ,c.job_id
      ,c.salary
      ,c.commission_pct
      ,c.manager_id
      ,c.department_id
      ,a.location_id
      ,a.street_address
      ,a.postal_code
      ,a.city
      ,a.state_province
      ,a.country_id
  from departments b
    ,locations a
    ,employees c
 where a.location_id = b.location_id
   and c.employee_id = b.manager_id
   and b.department_id = c.department_id;
Run Code Online (Sandbox Code Playgroud)

单击查询生成器选项卡。

在此输入图像描述

瞧。

在此输入图像描述

请注意,当前版本存在性能错误,将在 18.2 版本中修复。换句话说,今天需要一些时间来为您呈现该图。