Alternatively, you may use selectrow_array to get a single value.
my ($crows) = $dbh->selectrow_array($sqlc); print $crows;
Notice that $crows was declared in list context, to avoid side effects.
In reply to Re: Select COUNT in MySQL
by dbwiz
in thread Select COUNT in MySQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |