Getting list of columns in a table

From: Mike Blackwell <mblackwell(at)wallace(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Getting list of columns in a table
Date: 2002-09-18 19:13:46
Message-ID: 1032376430.1820.39.camel@mike_b_linux.wallace.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Sorry if this is a FAQ, but didn't see it in the web site FAQ or in the
docs I have.

I need a SQL statement which will return a list of the column names for
a (possibly empty) table. FWIW, I'm using Perl and DBI.

TiA,
Mike
mblackwell(at)wallace(dot)com

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jason Earl 2002-09-18 19:44:59 Re: Getting list of columns in a table
Previous Message Neil Conway 2002-09-18 19:07:30 Re: Automatic Indexes from Query Optimization?