Re: pgadmin III query - Mailing list pgsql-general

From Ian Lawrence Barwick
Subject Re: pgadmin III query
Date
Msg-id CAB8KJ=jmcoobcQikwC+9Td1_2V49Adtu5Bc+3Y7cvMkigskrTg@mail.gmail.com
Whole thread Raw
In response to pgadmin III query  (Peter Kroon <plakroon@gmail.com>)
Responses Re: pgadmin III query  (Peter Kroon <plakroon@gmail.com>)
List pgsql-general
2013/12/6 Peter Kroon <plakroon@gmail.com>:
> When you click on a table in the "Object browser" you'll see in the "SQL
> pane" the sql that is needed to create that table.
>
> Which function can I call to get that SQL?

You can use the pg_dump command line function for this:

  pg_dump -s -t name_of_table name_of_database

Regards

Ian Barwick


pgsql-general by date:

Previous
From: Jov
Date:
Subject: Re: pgadmin III query
Next
From: Peter Kroon
Date:
Subject: Re: pgadmin III query