标签:ase set when 批量 The 批量修改 upd date mysq
UPDATE
`test`
SET
`code` = (
CASE
WHEN `id` = 1 THEN 11
WHEN `id` = 2 THEN 22
WHEN `id` = 3 THEN 33
END
)
WHERE `id` IN (1, 2, 3);
标签:ase set when 批量 The 批量修改 upd date mysq
原文地址:https://www.cnblogs.com/WebLinuxStudy/p/13356357.html