my $_sql = "select * from $_k LIMIT 1";
my $sth = $dbh->prepare($_sql);
$sth->execute();
my @_mb2 = @{$sth->{NAME}};
$sth->finish();
adding LIMIT 1 to the select statement seems to have made a huge difference...
| Subject | Written By | Posted |
|---|---|---|
| Problem with timeout issues with mysql code in Perl | Richard Jones | 12/11/2008 06:48AM |
| Re: Problem with timeout issues with mysql code in Perl | Randy Clamons | 12/11/2008 11:39AM |
| Re: Problem with timeout issues with mysql code in Perl | Richard Jones | 12/12/2008 01:43AM |
Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.