vivekvp has asked for the wisdom of the Perl Monks concerning the following question:
i.e. 43 $sth=$dbh->prepare("select * from people where name=?"); 44 $sth->execute($name); 45 my @ar = $sth->fetchrow_array(); 46 foreach $ar (@ar) { 47 print "$ar \n"; 48 } 49 $sth->finish;
name doug last mitchell phone 1234567 address house colour blue
doug mitchell 1234567 house blue
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting Column Names from DBI?
by dws (Chancellor) on Oct 09, 2002 at 20:33 UTC | |
|
Re: Getting Column Names from DBI?
by Zaxo (Archbishop) on Oct 09, 2002 at 20:28 UTC | |
by diotalevi (Canon) on Oct 09, 2002 at 21:03 UTC |