in reply to DBI: Better way to find number of rows in a table?
HTH."selectrow_arrayref" $ary_ref = $dbh->selectrow_arrayref($statement); $ary_ref = $dbh->selectrow_arrayref($statement, \%attr); $ary_ref = $dbh->selectrow_arrayref($statement, \%attr, @ +bind_values); This utility method combines "prepare", "execute" and "fetchrow_arrayref" into a single call. It returns the firs +t row of data from the statement. The $statement parameter can be a + previ- ously prepared statement handle, in which case the "prepare +" is skipped. + If any method fails, and "RaiseError" is not set, "selectro +w_array" will return undef.
|
|---|