From: David C. Brown <dbrown@centennialwines.com>
To: pgsql-php@postgresql.org
Subject: Retrieving a list of tables
Date: Tue, 16 Oct 2001 15:09:13 -0500
Message-ID: <3BCC93E9.E3B2F503@centennialwines.com> (raw)
Heyas,
I need to be able to get a list of the tables from a postgresql from
php. I'm
porting a php-mysql website over to postgresql. I have a form that
populates
a <SELECT> statment with the tables in the db.
In Mysql I just used the sql query "SHOW TABLES;" postgresql doesn't
support that sql statment, and pg-php doesn't like me sending a "\d" as
a
query.
Anyone have any help, or ideas how I may be able to work around this?
or is there a query for pg-sql that I don't know about?
Any and all help would be great... Thanx
Dave
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: dbrown@centennialwines.com
Subject: Re: Retrieving a list of tables
In-Reply-To: <3BCC93E9.E3B2F503@centennialwines.com>
References: <3BCC93E9.E3B2F503@centennialwines.com>
* 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