MySQL Forums
Forum List  »  Newbie

Re: Select and update at the same time (with selected value)?
Posted by: laptop alias
Date: June 13, 2010 02:15AM

UPDATE pool_process 
   SET status = 'RUNNING'
     , proc_srv='$server_id' 
 WHERE any=1 
   AND status='' 
 ORDER
    BY id 
 LIMIT 1;

?

Options: ReplyQuote




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.