Re: newbie question... how do I get table structure?

From: Aaron Bratcher <aaronbratcher(at)abdatatools(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: newbie question... how do I get table structure?
Date: 2004-02-06 14:10:23
Message-ID: 346ED056-58AE-11D8-9BF4-000A959E9B12@abdatatools.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is there no way I can do it with a standard select command in a
different client? I don't need the indexes, just the column
names/types.
--
Aaron Bratcher
ab DataTools
http://www.abDataTools.com

On Feb 6, 2004, at 8:12 AM, Harald Fuchs wrote:

> In article <4022FB80(dot)6090205(at)commandprompt(dot)com>,
> "Joshua D. Drake" <jd(at)commandprompt(dot)com> writes:
>
>> Aaron Bratcher wrote:
>>> What command can I use to get the structure of a given table?
>>>
>
>
>> If psql is client
>
>> \d tablename
>
> Without psql you can use
>
> pg_dump -s DBNAME -t TBLNAME
>
> from your shell prompt.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mark Gibson 2004-02-06 14:42:51 Re: newbie question... how do I get table structure?
Previous Message Mark Gibson 2004-02-06 14:04:04 Casting 'record' to a composite type.