MySQL Forums
Forum List  »  Performance

UPDATE - Increment Speed Question
Posted by: dbv
Date: April 04, 2005 09:44AM

According to various MySQL guides, UPDATE table SET count = count+1 WHERE id=const is very fast. My question is why?

Why is it faster than:

UPDATE table SET count = 321 WHERE id=const

Thanks.

Options: ReplyQuote


Subject
Views
Written By
Posted
UPDATE - Increment Speed Question
11396
dbv
April 04, 2005 09:44AM
3331
April 05, 2005 01:36AM
2796
dbv
April 05, 2005 09:23AM
2724
April 10, 2005 12:00PM
2595
dbv
April 11, 2005 05:24PM


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.