in reply to Odd "rows affected" values using DBI on MySQL
At least in other databases I'm familiar with, the "rows affected" means the rows that fit the where clause. It does not actually perform a diff against the old values, and only report the changes.$rows_affected = $dbh->do("UPDATE meters SET description=? WHERE name= +? and description <> ? ", undef, $info, $meter, $info);
------------ :Wq Not an editor command: Wq
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Odd "rows affected" values using DBI on MySQL
by LassiLantar (Monk) on Jul 24, 2004 at 20:08 UTC | |
by ercparker (Hermit) on Jul 24, 2004 at 20:41 UTC | |
by LassiLantar (Monk) on Jul 24, 2004 at 20:46 UTC | |
by heroin_bob (Sexton) on Jul 25, 2004 at 00:21 UTC | |
by grantm (Parson) on Jul 24, 2004 at 21:49 UTC | |
by tilly (Archbishop) on Jul 24, 2004 at 21:56 UTC | |
|
Re^2: Odd "rows affected" values using DBI on MySQL
by CountZero (Bishop) on Jul 24, 2004 at 22:01 UTC |