in reply to How to get number of rows updated in by an sql statement? (Win32::ODBC)
The documentation for DBI is pretty good on this front.
It looks like:
$rows = $sth->rows;
... would return what you're looking for (unless the ODBC driver doesn't support this kind of method).
If the driver is very limited (I haven't worked with the Win32::ODBC driver) then you might have to fudge it a bit and try a clever SELECT statement based on the UPDATE if you really need to know how many rows were affected.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Answer: How can I get # of rows updated in a query when I use Win32::ODBC?
by 2501 (Pilgrim) on Jan 15, 2001 at 09:36 UTC |