用代码实现凭借成下列sql语句即可同时批量更新多条数据
UPDATE table_name SET column
= CASE 'id' WHEN 1 THEN ? WHEN 2 THEN ? ELSE column
END WHERE id
IN (1,2)
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme