You can do this by just issuing that statement as a regular SQL query.   I
was able to connect via an ADO connection:

    set myRecordset = conn.execute("describe thedatabase.thetable")

and I'm sure you could do this with php via   mysql_query("describe
thetable")

In both cases you end up with a recordset that you can loop through.

Regards,
Gary "SuperID" Huntress
=======================================================
FreeSQL.org offering free database hosting to developers
Visit http://www.freesql.org

----- Original Message -----
From: "Sam Daniel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 16, 2001 8:47 PM
Subject: Fwd: Metadata Retrieval


> I am interested in retrieving Field and Type information from a named
> table.  Currently, MySQL allows me to see a table's description via
>
> mysql> describe TheTable;
>
> returning its structure in the form of a table, including the Fields and
> Types columns.  I would like to retrieve the contents of these two
> columns.  What is the SQL call that will do this?
>
> Sam Daniel
> Motorola
> 480-441-7431
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail
<[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to