Not sure whether this should be posted here or in MySQL as it is a MySQL query via DBI from a perl script.
I need to get the number of rows affected during a query.
I have been searching round for the syntax and the different versions are confusing.
None of these appear to work, have I got the right syntax or am I doing the call all wrong?
Keith
I need to get the number of rows affected during a query.
I have been searching round for the syntax and the different versions are confusing.
Code:
my $rows = $sth->affectedrows;
my $rows = $sth->affected_rows;
my $rows = $sth->affected_rows();
my $rows = $sth->mysql_affected_rows();
Keith