Re: table column information - Mailing list pgsql-php

From Scot L. Harris
Subject Re: table column information
Date
Msg-id 1084757732.17065.150.camel@lathe
Whole thread Raw
In response to Re: table column information  (ljb <ljb220@mindspring.com>)
List pgsql-php
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>


pgsql-php by date:

Previous
From: ljb
Date:
Subject: Re: table column information
Next
From: Andrew McMillan
Date:
Subject: Re: table column information