bartha
Technical User
- May 3, 2011
- 3
Hi,
I need to capture the number of rows that were updated using UPDATE command.
For Example:
UPDATE t1
SET Col_1 = 'Col_1', Col_2 = 'Col_2'
WHERE Col_3 = 'TEK'
AND Col_4 = 'TIP'
Once this is executed, I need to be able to capture the number of rows that was updated. What might be the best way to include COUNT( ) function within the UPDATE syntax as used.
bartha
I need to capture the number of rows that were updated using UPDATE command.
For Example:
UPDATE t1
SET Col_1 = 'Col_1', Col_2 = 'Col_2'
WHERE Col_3 = 'TEK'
AND Col_4 = 'TIP'
Once this is executed, I need to be able to capture the number of rows that was updated. What might be the best way to include COUNT( ) function within the UPDATE syntax as used.
bartha