UPDATE Speed - Decrement Counter?
Posted by:
dbv
Date: April 03, 2005 04:41PM
The following is very fast:
UPDATE table set count=count+1 where key_column=constant
However, I want to decrement a value:
UPDATE table set count=count-1 where key_column=constant
But it doesn't update the row. Is there a way to update the row efficiently? Thanks.
Subject
Written By
Posted
UPDATE Speed - Decrement Counter?
April 03, 2005 04:41PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.