UPDATE Table_1 SET priority = CASE id WHEN 1 THEN (SELECT priority FROM Table_1 WHERE id = 2) WHEN 2 THEN (SELECT priority FROM Table_1 WHERE id = 1) END WHERE id IN (1, 2)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)