Problem Description

Two sessions update same row. Show a safe pattern using a version column and conditional update.

Input Format

SQL script

Output Format

Statements

Sample Test Case

Input:
Items(id, qty, version)
Output:
Safe update

Constraints

Use optimistic locking

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next