更新 ; // Update with conditions db.Model(&User{}).Where("active = ?", true) ; // Update attributes with `struct`, will only update non-zero fields
確定! 回上一頁