On 10-Aug-2001 Bennett Haselton wrote:
> Is there any way -- using either MySQL directly, or (ideally) using the DBI 
> perl module -- to get a list of fields from a (possibly empty) table?  (If 
> the table is nonempty, you can just use a perl function to get the first 
> record, and then apply keys() to the returned reference to get the field 
> names.)
> 

 $dbh->listfiels('da_table');

Regards,
-- 
Don Read                                       [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.
                            (53kr33t w0rdz: sql table query)

---------------------------------------------------------------------
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