Re: Field names - Mailing list pgsql-general

From mikeo
Subject Re: Field names
Date
Msg-id 3.0.1.32.20000818160732.00930d30@pop.spectrumtelecorp.com
Whole thread Raw
In response to Field names  ("Mitch Vincent" <mitch@venux.net>)
List pgsql-general
try this :

select attname from pg_attribute where attrelid = (select oid from pg_class
where relname
= 'your table name') order by attnum;

you can further develop a query from this...


HTH


At 12:14 PM 8/18/00 -0700, Mitch Vincent wrote:
>I know this has been asked and answered before but I can't seem to find the
>answer anywhere..
>
>I would like to get the names of the fields in a table (not the values) in a
>query. That's possible with PostgreSQL,  isn't it?
>
>Thanks!
>
>-Mitch
>

pgsql-general by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Field names
Next
From: "Darrin Ladd"
Date:
Subject: PG 7.0.2 Install