Re: list fieldnames in table? (from PHP)

From: "Scott Marlowe" <smarlowe(at)qwest(dot)net>
To: "Miles Keaton" <mileskeaton(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: list fieldnames in table? (from PHP)
Date: 2004-10-27 01:24:14
Message-ID: 1098840254.31930.33.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 2004-10-25 at 20:36, Miles Keaton wrote:
> Is there a simple way to list fieldnames in a table, from PHP?
>
> When on the command-line, I just do \d tablename
>
> But how to get the fieldnames from PHP commands?

In addition to the other ideas given here, you also have the SQL spec
standard information_schema to examine

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Naeem Bari 2004-10-27 01:24:56 Newbie question about casting literals - oracle/postgres
Previous Message Robby Russell 2004-10-27 00:05:27 Re: primary key and existing unique fields