How to get ERD diagram for an existing database?

前端 未结 12 1007
灰色年华
灰色年华 2021-01-30 03:00

I have a PostgreSQL database. I want to get its ERD. How can I do so?

12条回答
  •  醉话见心
    2021-01-30 03:13

    Our team use Visual Paradigm to generate ER diagram from database in many of our projects. While we mainly work on MS SQL and Oracle, as I know they also support some other DBMS like PostgreSQL, MySQL, Sybase, DB2 and SQLite.

    Steps:

    1. Select Tools > DB > Reverse Database... from the toolbar of Visual Paradigm
    2. Keep the settings as is and click Next Select PostgreSQL as driver and provide the driver file there. You can simply click on the download link there to get the driver.
    3. Enter the hostname, database name, user and password, and then click Next
    4. They will then study your database and lists out the tables in it.
    5. Select the table to form an ERD and continue, and that's it. An ERD will be generated with the tables you selected presented.

    BTW they also support generating and updating database schema from ERD.

    Hope this helps. :-)

    More information about generating ERD from PostgreSQL database

提交回复
热议问题