Re: Get the table creation DDL

From: Igor Korot <ikorot01(at)gmail(dot)com>
To: Michael Nolan <htfoot(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:47:48
Message-ID: CA+FnnTwZVapcAFf=LsoW0ygLgVFf77rPxZjBCArqV7Q07NvY1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi, Michael,

On Sun, Jul 10, 2022 at 11:13 AM Michael Nolan <htfoot(at)gmail(dot)com> wrote:
>
>
>
> 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?

So there is no "query" per se?
Also how do I pass the table name?

Thank you.

>>
>> 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 17:18:33 Re: Get the table creation DDL
Previous Message Michael Nolan 2022-07-10 16:12:49 Re: Get the table creation DDL