in reply to Getting a list of columns from a MySQL Table
use Data::Dumper; my $sth = $dbh->prepare("DESCRIBE $i"); $sth->execute; while(my $info = $sth->fetchrow_hashref) { print Dumper($info); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Getting a list of columns from a MySQL Table
by c (Hermit) on Jul 22, 2002 at 22:37 UTC | |
|