in reply to Re: Re: Re: DBD::CSV and SQL::Statement
in thread DBD::CSV and SQL::Statement
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";
|
|---|