Re: column names
| From: | Steve Werby | Date: | Thu, 05 Apr 2001 14:03:36 +0000 |
| Subject: | Re: column names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-47258@lists.php.net to get a copy of this message | ||
"Tim Ward" <tim.ward@stivesdirect.com> wrote:
> SHOW COLUMNS FROM tablename
> is the MySQL query
That works well from the MySQL commandline, but isn't as useful from within
a PHP script if Mauricio wants to control the formatting of it, limit the
fields displayed and use it within the logic of the PHP script. Depends
what he needs to do. I still think mysql_field_name() / pg_fieldname() are
the way to go, though Mauricio never mentioned which DBMS he's using.
--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/