I always run the selection criteria through SELECT first and verify
the results
before updating. Does not matter the database (DB2 with or without
journaling/commitment control, SQL Server, etc.).

Doesn't always help. You may have to subtly change the query to make it
an update instead of a select. Now, if you're journaling you do the
select, determine that 44 rows should be updated, start a transaction,
do the update, see that 440 rows were updated, say "ooops" and rollback.
No harm no foul. Or commit if the right number of rows were updated.


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].