If the primary key is a string (for example, like a uuid), the query will be written as follows: db.First(&user, "id = ?
確定! 回上一頁