RE: programmatically getting field list from a table

2001-08-10 Thread Don Read
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

programmatically getting field list from a table

2001-08-09 Thread Bennett Haselton
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

RE: programmatically getting field list from a table

2001-08-09 Thread Chris Bolt
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