MySQL Forums
Forum List  »  PHP

Re: updateing random rows
Posted by: Felix Geerinckx
Date: August 24, 2005 09:25AM

Jason Baxter wrote:


> "UPDATE `table` SET `column` = 'new value'
> WHERE ` column ` = 'value' AND `column` = '1' LIMIT " . $limitingVar . " ORDER BY RAND()"

LIMIT should come after ORDER BY

--
felix
Please use BBCode to format your messages in this forum.

Options: ReplyQuote


Subject
Written By
Posted
August 24, 2005 09:12AM
Re: updateing random rows
August 24, 2005 09:25AM
August 24, 2005 09:25AM
August 24, 2005 09:49AM


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.