pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scot L. Harris <webid@cfl.rr.com>
To: ljb <ljb220@mindspring.com>
Cc: pgsql-php@postgresql.org
Subject: Re: table column information
Date: Sun, 16 May 2004 21:35:32 -0400
Message-ID: <1084757732.17065.150.camel@lathe> (raw)
In-Reply-To: <c890e8$12ql$1@news.hub.org>
References: <1084749506.2056.148.camel@lathe>
	<c890e8$12ql$1@news.hub.org>

On Sun, 2004-05-16 at 20:19, ljb wrote:

> You almost got it - just do "select * from tablename where 0=1", which returns
> no rows but will give you the fieldnames. A portable and (I think)
> efficient way to get table column names.

Thanks.  That should do it.

I was not able to get to the list archives earlier.   

-- 
Scot L. Harris <webid@cfl.rr.com>




view thread (11+ messages)  latest in thread

Message-ID: <1084757732.17065.150.camel@lathe>
Permalink:  ../1084757732.17065.150.camel@lathe/
Also on:    postgresql.org/message-id/1084757732.17065.150.camel@lathe

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: webid@cfl.rr.com, ljb220@mindspring.com
  Subject: Re: table column information
  In-Reply-To: <1084757732.17065.150.camel@lathe>
  References: <1084749506.2056.148.camel@lathe> <c890e8$12ql$1@news.hub.org> <1084757732.17065.150.camel@lathe>

* 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