Re: table column information

From: "Scot L(dot) Harris" <webid(at)cfl(dot)rr(dot)com>
To: ljb <ljb220(at)mindspring(dot)com>
Cc: pgsql-php(at)postgresql(dot)org
Subject: Re: table column information
Date: 2004-05-17 01:35:32
Message-ID: 1084757732.17065.150.camel@lathe
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)cfl(dot)rr(dot)com>

In response to

Browse pgsql-php by date

  From Date Subject
Next Message Andrew McMillan 2004-05-17 02:55:32 Re: table column information
Previous Message Stefan Gastaldon 2004-05-17 01:20:21 Re: table column information