我有一个PostgreSQL数据库。我想从数据库中生成ERD。有没有内置工具或者第三方工具?
当前回答
ERBuilder可以从PostgreSQL数据库生成ER图(反向工程特性)。
生成ER图的步骤如下:
•点击菜单->文件->逆向工程
•点击新建连接
•填写PostgresSQL连接信息
•点击确定
•点击“下一步”
•选择你想要逆向工程的对象(表,触发器,序列.....)。
•点击下一步。
如果您使用的是试用版,则会显示您的ERD 自动。 如果你使用的是免费版,你需要拖动 并从应用程序左侧的树视图中删除表
其他回答
pgAdmin 4版本30及更新版本可以从现有数据库生成ERD。只需右键单击数据库并选择Generate ERD。
从https://www.dbvis.com/download/10.0下载DbVisualizer
安装完成后,创建数据库连接:
通过单击ping服务器更改数据库的高亮显示细节和测试。最后点击连接
享受。
另一种选择是使用Oracle SQL Developer。分为以下两步:
首先,你需要将SQL Developer连接到PostgreSQL数据库。
然后你可以使用SQL Developer生成一个实体-关系(ER)图
为此我们使用了DBVisualizer。
描述: 引用图是一个很好的特性,因为它自动以图形样式呈现所有主键/外键映射(也称为引用完整性约束)。表节点和关系是自动布局的,有许多可用的布局模式。生成的图形是唯一的,因为它以最佳且可读的布局显示所有信息。 来自网站
Open MySQL Workbench. In the home screen click 'Create EER Model From Existing Database'. We are doing this for the case that we have already made the data base and now we want to make an ER diagram of that database. Then you will see the 'Reverse Engineer Database' dialouge. Here if you are asked for the password, provided the admin password. Do not get confused here with the windows password. Here you need to provide the MySQL admin password. Then click on Next. In the next dialouge box, you'll see that the connection to DBMS is started and schema is revrieved from Database. Go next. Now Select the Schema you created earlier. It is the table you want to create the ER diagram of. Click Next and go to Select Objects menu. Here you can click on 'Show Filter' to use the selected Table Objects in the diagram. You can both add and remove tables here.Then click on Execute.
6.当您点击Next和Finish时,所需的ER图就会出现在屏幕上。
推荐文章
- 为什么PostgreSQL要对索引列进行顺序扫描?
- PostgreSQL INSERT ON冲突更新(upsert)使用所有排除的值
- 如何检查一个表是否存在于给定的模式中
- 如何在SQL Server Management Studio中查看查询历史
- 如何将整数转换为字符串作为PostgreSQL查询的一部分?
- Psycopg2:用一个查询插入多行
- PostgreSQL返回JSON数组的结果集?
- PostgreSQL通配符LIKE用于单词列表中的任何一个
- 如何创建数据库的MongoDB转储?
- 检查Postgres JSON数组是否包含字符串
- psql: FATAL: Peer authentication failed for user "dev"
- 如何在Postgres/SQL中获得两个整数的最小/最大值?
- 多语言数据库设计的最佳实践是什么?
- 如何在postgresql中显示函数,过程,触发器源代码?
- 什么时候不使用Cassandra?