You can simplify that using the $dbh->selectrow_array($statement); method.
my ($val) = $dbh->selectrow_array("SELECT sum(file_size) FROM dir_info +");
In reply to Re: DBI SUM function
by eric256
in thread DBI SUM function
by Bruce32903
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |