MySQL Forums
Forum List  »  Newbie

Re: Select and update at the same time (with selected value)?
Posted by: Kevin K
Date: June 17, 2010 08:44PM

@Laptop Alias: That's not what I am looking for.
@Rick James (hi again): I'm not sure the LAST_INSERT_ID() is what I'm looking for either.

My guess is my statement would look something akin to:

select * from pool_process where any="1" and status="" order by id asc limit 1 and update pool_process set status = "RUNNING" where id = this.id;

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.