How can you get the exact rows affected by the SQL UPDATE statement in DB2 on the AS400 ?
It is very useful to see which lines have just been updated, even more during the tests.
I saw this question : the same, but specific to MySQL. Is there a standard SQL method or a specific DB2 method for this?
I have also seen this method , but I cannot use it because my update request is too complex.
An additional feature may be: getting the previous version of these lines as well , so you can compare it with the actual version (after updating) and see the changes.
EDIT: my DB2 versions - for IBM I have V5R3 and V6R1
bluish
source share