MySQL笔记-批量更新
UPDATE tableName SET orderId = CASE id WHEN 1 THEN 3 WHEN 2 THEN 4 WHEN 3 THEN 5 END, age = CASE id WHEN 1 THEN 18 END WHERE id IN (1,2,3)
黄金分割
MySQL笔记-批量更新
UPDATE tableName SET orderId = CASE id WHEN 1 THEN 3 WHEN 2 THEN 4 WHEN 3 THEN 5 END, age = CASE id WHEN 1 THEN 18 END WHERE id IN (1,2,3)