时间:2021-07-01 10:21:17 帮助过:30人阅读
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);
MYSQL批量修改
标签:ase set when 批量 The 批量修改 upd date mysq