我有一个PostgreSQL数据库。我想从数据库中生成ERD。有没有内置工具或者第三方工具?
当前回答
另一种选择是使用Oracle SQL Developer。分为以下两步:
首先,你需要将SQL Developer连接到PostgreSQL数据库。
然后你可以使用SQL Developer生成一个实体-关系(ER)图
其他回答
也许可以看看AquaFold的Aqua Data Studio。它是一个具有实体关系图的数据库IDE。它还包括数据分析。它不是免费的,但考虑到它的功能,它的价格是非常合理的。
ERBuilder可以从PostgreSQL数据库生成ER图(反向工程特性)。
生成ER图的步骤如下:
•点击菜单->文件->逆向工程
•点击新建连接
•填写PostgresSQL连接信息
•点击确定
•点击“下一步”
•选择你想要逆向工程的对象(表,触发器,序列.....)。
•点击下一步。
如果您使用的是试用版,则会显示您的ERD 自动。 如果你使用的是免费版,你需要拖动 并从应用程序左侧的树视图中删除表
为此我们使用了DBVisualizer。
描述: 引用图是一个很好的特性,因为它自动以图形样式呈现所有主键/外键映射(也称为引用完整性约束)。表节点和关系是自动布局的,有许多可用的布局模式。生成的图形是唯一的,因为它以最佳且可读的布局显示所有信息。 来自网站
你可以使用dbeaver来做到这一点。它允许您将ER图导出为png/svg等格式。
德布弗 - https://dbeaver.io/
双击一个模式(例如,模式->公共->表)并打开“ER图”选项卡(在“属性”选项卡旁边)
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图就会出现在屏幕上。
推荐文章
- 为什么我应该使用基于文档的数据库而不是关系数据库?
- 哪个更快/最好?SELECT *或SELECT columnn1, colum2, column3等
- 将varchar字段的类型更改为整数:"不能自动转换为整数类型"
- 将值从同一表中的一列复制到另一列
- PostgreSQL可以索引数组列吗?
- 什么是数据库池?
- 关于数据库,每个开发人员应该知道些什么?
- PostgreSQL:角色不允许登录
- "where 1=1"语句
- 如何查找Postgres / PostgreSQL表及其索引的磁盘大小
- 是使用各有一个模式的多个数据库更好,还是使用一个数据库有多个模式更好?
- 如何从Oracle的表中获取列名?
- 如果字符串包含
- 如何检查表上持有哪些锁
- 在MongoDB中查找重复的记录