I am using the Unix db2 command line tool (actually in a shell script).
Is there an option I can turn on that will tell me the number of rows affected by an update statement?
for example my sql would be very basic like:
Code:
update EMAIL_ADDR set NAME_EMAIL_ADDR = 'test2@testdomain.com' where id_email_addr = 200
The info I get back is:
Code:
update EMAIL_ADDR set NAME_EMAIL_ADDR = 'test2@testdomain.com' where id_email_addr = 200
DB20000I The SQL command completed successfully.
The jist of my shell script is:
Code:
db2 "connect to $DATABASE user $USERID using '$PWD' "
db2 +c -tvf $INFILE | tee $RESULTFILE