Copy table structure into new table

前端 未结 5 548
予麋鹿
予麋鹿 2020-12-07 14:30

Is there a way to copy the structure of a table into a new table, without data, including all keys and constraints?

5条回答
  •  春和景丽
    2020-12-07 14:49

    Take a look at pgAdmin - by far the easiest way to do what you want.
    Right-click on table, Scripts - Create.

提交回复
热议问题