InterviewBuddy
All interview questions

In Backend, give an example of optimistic locking.

Intermediate

Answer

UPDATE records SET version=version+1 WHERE id=7 AND version=3.