Code: Select all
UPDATE SOME_TABLE
SET TABLE_ID = :p1,...
WHERE TABLE_ID = :key1 AND ((:nullchk1 = 1 AND LAST_UPDATE IS NULL) OR (LAST_UPDATE = :chk1)) RETURNING LAST_UPDATE INTO :ret1
This is important to us as our product runs on different db servers. SQL version has no problem returning the correct rows affected info. This info is used to check if concurency violation has occured!