How to generate the “create table” sql statement for an existing table in postgreSQL

后端 未结 19 2005
花落未央
花落未央 2020-11-28 17:49

I have created a table in postgreSQL. I want to look at the SQL statement used to create the table but cannot figure it out.

How do I get the create table

相关标签:
19条回答
  • 2020-11-28 18:25

    The easiest method I can think of is to install pgAdmin 3 (found here) and use it to view your database. It will automatically generate a query that will create the table in question.

    0 讨论(0)
提交回复
热议问题