From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Re: Columns view? (Finding column names for a table)
Date: Wed, 06 Feb 2008 21:43:44 +0100
Message-ID: <fod660$23s$1@ger.gmane.org> (raw)
In-Reply-To: <20080206203334.8B2B52E01F8@postgresql.org>
References: <20080206203334.8B2B52E01F8@postgresql.org>
Steve Midgley wrote on 06.02.2008 21:33:
> Hi,
>
> I see this documentation item but can't figure out how to use it:
>
> http://www.postgresql.org/docs/8.2/interactive/infoschema-columns.html
>
>> The view columns contains information about all table columns (or view
>> columns) in the database.
select column_name
from information_schema.columns
where table_name = 'table_name'
works for me.
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: Columns view? (Finding column names for a table)
In-Reply-To: <fod660$23s$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox