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