Need help in exception handling.
If I run this UPDATE script once it works, but when I run same script two or more times I receive the following error
“1 row updated. commited”
but it is not ok.
I want to receive exception.
“Note:Table is already updated”
UPDATE FBTB_TXNLOG
SET txnstageid = '-1',
LOCKED = 'N',
where xrefid = 'FJB1229000056689';
commit;
Try this solution: