Your Question
The document you expected this should be explained
Expected answer
Comment From: wxy2077
问题描述太少了,没有例子,是我理解的这个意思吗?
db.Model(&user).Where("id in (?)", []int64{1, 2, 3}).Updates(map[string]interface{}{"name": "hello"})
// UPDATE users SET name='hello' WHERE id in (1, 2, 3);
参考 https://gorm.io/docs/update.html#Update-Selected-Fields
Comment From: github-actions[bot]
This issue has been automatically marked as stale because it has been open 360 days with no activity. Remove stale label or comment or this will be closed in 180 days