0

I'm facing a problem with a voting system specially in the vote up feature.

How can I make something like votes++ in the database without the need to select the last votes in single query?

1 Answer 1

2
UPDATE myTable
  SET voteCol = voteCol + 1
  WHERE id = idOfInterest;
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.