Skip to content
RED SAGSkills
medium10 pts · first answer countstransactionsconstraints

Swapping two unique positions

A playlist has UNIQUE (playlist_id, position). Swapping positions 1 and 2 with two UPDATEs fails on the first one. What allows the swap inside one transaction?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions