Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $sth5 = $dbh->prepare("select round, teamname, score from trees whe +re sport = ‘$sport’ and year = ‘$year’, order by round") || die "Can' +t prepare SQL get data statement"; $sth5->execute || die “can’t execute sql statement”; ##need to get all the data one row at a time from the table. my @row; while (@row = $sth5->fetchrow_array) { need to put each row into a hash. }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: appending an array to a hash
by Hot Pastrami (Monk) on Mar 22, 2001 at 02:42 UTC | |
by merlyn (Sage) on Mar 22, 2001 at 02:44 UTC | |
by Anonymous Monk on Mar 22, 2001 at 03:10 UTC | |
by Hot Pastrami (Monk) on Mar 22, 2001 at 03:22 UTC | |
by Anonymous Monk on Mar 22, 2001 at 20:13 UTC | |
by dkubb (Deacon) on Mar 22, 2001 at 09:00 UTC | |
by Anonymous Monk on Mar 23, 2001 at 01:19 UTC | |
by Anonymous Monk on Mar 22, 2001 at 16:54 UTC |