Re: Get the table creation DDL

From: Michael Nolan <htfoot(at)gmail(dot)com>
To: Igor Korot <ikorot01(at)gmail(dot)com>
Cc: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Get the table creation DDL
Date: 2022-07-10 16:12:49
Message-ID: CAOzAquJOSJVya6Ap5-qGTemQ2f_NuN_Qtg1wM0=COSKhodHYoQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, Jul 10, 2022 at 10:28 AM Igor Korot <ikorot01(at)gmail(dot)com> wrote:

> Hi,
> Is there a query I can execute that will give me CREATE TABLE() command
> used to create a table?
>
> Thank you.
>

Use pg_dump --schema-only
--
Mike Nolan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Igor Korot 2022-07-10 16:47:48 Re: Get the table creation DDL
Previous Message Igor Korot 2022-07-10 15:40:41 Get the table creation DDL