If save value does not contain primary key, it will execute Create , otherwise it will execute Update (with all fields). db.Save(&User{Name: "jinzhu", Age: 100})
確定! 回上一頁