Re: list fieldnames in table? (from PHP)

From: Justin Wyer <justin(at)isogo(dot)co(dot)za>
To: Miles Keaton <mileskeaton(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: list fieldnames in table? (from PHP)
Date: 2004-10-26 06:29:17
Message-ID: 417DEEBD.70500@isogo.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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?
>
>---------------------------(end of broadcast)---------------------------
>TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>
>
If you have a look at the PHP manual there is a function to do this for
you - pg_meta_data - check out the manual...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Henk Ernst Blok 2004-10-26 08:16:56 Strange count(*) implementation?
Previous Message Adrian Maier 2004-10-26 06:13:54 Re: [HACKERS] Question on the 8.0Beta Version