Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to extract not only the data from a table but also the column names.
Is there any function in the DBI module to extract the column names of a table.
Thanks in advance.
use DBI; ... ... ... while ( my @rows = $sth->fetchrow_array ) { print "@rows\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: extract the Column names of a table
by wfsp (Abbot) on Mar 24, 2008 at 10:48 UTC | |
by l.frankline (Hermit) on Mar 24, 2008 at 12:20 UTC | |
|
Re: extract the Column names of a table
by merlyn (Sage) on Mar 24, 2008 at 14:08 UTC | |
|
Re: extract the Column names of a table
by olus (Curate) on Mar 24, 2008 at 12:34 UTC | |
|
Re: extract the Column names of a table
by DBAugie (Beadle) on Mar 24, 2008 at 11:40 UTC |