Win has asked for the wisdom of the Perl Monks concerning the following question:
foreach (@Geo_areas) { $_ or next; my $Return_results = "Select * from Result_storage_keep where Ag +gregated_area LIKE '".$_."' \;"; my $sth_C = $dbh->prepare($Return_results) or die "Couldn't prep +are query: ".$dbh->errstr; $sth_C->execute() or die "Couldn't execute query: ".$sth_C->errs +tr; while (my @row = $sth_C->fetchrow_array) { foreach (@row) { $_ = '' unless defined; } print OUTPUT_FILE join("\t", @row); print OUTPUT_FILE "\n"; undef @row; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: while (my @row = $sth->fetchrow_array)
by dragonchild (Archbishop) on Jan 09, 2006 at 17:57 UTC | |
|
Re: while (my @row = $sth->fetchrow_array)
by jettero (Monsignor) on Jan 09, 2006 at 14:50 UTC | |
|
Re: while (my @row = $sth->fetchrow_array)
by pajout (Curate) on Jan 09, 2006 at 13:10 UTC | |
|
Re: while (my @row = $sth->fetchrow_array)
by jesuashok (Curate) on Jan 09, 2006 at 11:10 UTC | |
|
Re: while (my @row = $sth->fetchrow_array)
by jesuashok (Curate) on Jan 09, 2006 at 11:16 UTC | |
by Errto (Vicar) on Jan 09, 2006 at 20:25 UTC | |
|
Re: while (my @row = $sth->fetchrow_array)
by SamCG (Hermit) on Jan 10, 2006 at 17:33 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |