my $sth = $dbh->prepare('select count(*) from table_name'); $sth->execute; my ($count) = $sth->fetchrow; $sth->finish; print "count: $count\n";
In reply to Re: DBIx::Recordset or DBI COUNT sql
by iguanodon
in thread DBIx::Recordset or DBI COUNT sql
by Heidegger
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |