How can you get the exact rows affected by an SQL UPDATE statement in DB2 on AS400?
It's very usefull to see which are the rows just updated, even more during tests.
I saw this question: is the same, but specific for MySQL. Is there a standard SQL way or DB2 specific way for doing this?
I saw also this technique, but I can't use it because my update query is too much complicated.
An additional feature could be: getting also previous version of these rows, so you can compare it with the actual version (after the update) and see the modifications.
EDIT: my DB2 versions are the ones for IBM i V5R3 and V6R1