Friday, 15 August 2014

php - SQL SELECT and UPDATE at the same time -


I have a very simple selection that looks like this:

  by item Select Path WHERE id = 17  

Now in the table item is a column count , which is what I want to increment every time

Not so, the way to do this in a single question.

You can do something like this:

  Start transactions; Update .... Select ... COMMIT;  

No comments:

Post a Comment