in reply to List columns for a MySQL table
my $sth = $dbh->prepare("SELECT * FROM $table WHERE 1=0"); $sth->execute; my @cols = @{$sth->{NAME_lc}}; $sth->finish;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: List columns for a MySQL table
by EvanK (Chaplain) on Jun 28, 2006 at 17:25 UTC | |
by jZed (Prior) on Jun 28, 2006 at 17:37 UTC | |
by EvanK (Chaplain) on Jun 28, 2006 at 18:38 UTC |