Export a CREATE script for a database

前端 未结 5 733
北恋
北恋 2021-01-30 10:22

Say I\'ve created a database in pgAdmin, but I want to export a CREATE sql file.

How would I go about generating the dump?

5条回答
  •  攒了一身酷
    2021-01-30 10:48

    pgAdmin however does have a facility to do what you want:

    Right-click on the database you want to export

    Select Backup from the pop-up menu

    Choose "format" Plain.

    Choose "plain option" Only schema

提交回复
热议问题