But $sth->rows gives a count even without a fetch. So:
my $sth=$dbh->prepare(qq{SELECT * FROM foo WHERE bar = baz})
$sth->execute;
print $sth->rows, "matched the query";
In reply to Re: Re: Re: Re: DBD::CSV and SQL::Statement
by jZed
in thread DBD::CSV and SQL::Statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |