Note: $db_handle is the database handle used in your code.my $data = qq[SELECT COUNT(*) FROM questions WHERE `q1` = "upright"]; my $count = $db_handle->selectcol_arrayref($data); print "Count $count->[0]\n";
In reply to Re: Getting a count of all rows in MySQL
by brsaravan
in thread Getting a count of all rows in MySQL
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |