MySQL Forums
Forum List  »  Optimizer & Parser

SELECT counter
Posted by: Root Tr
Date: December 17, 2011 01:24PM

Hi.
How do I make the following two queries one query by best performance?

SELECT * FROM `video` WHERE `id` = 1;
UPDATE `video` SET `views` = `views` + 1 WHERE `id` = 1;

Options: ReplyQuote


Subject
Views
Written By
Posted
SELECT counter
2201
December 17, 2011 01:24PM
1048
December 19, 2011 06:57AM


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.