This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
您的 SQL 语句不会返回新创建的 ID 值。当您执行插入语句时,不会自动返回该值。
Your SQL statement isn't returning your newly created ID value. That isn't automatically returned when you execute an insert statement.
事实证明上面的代码没有任何问题。我在另一个函数中弄乱了用户 id 值,这导致了这里的麻烦!
It turns out there is nothing wrong with the above code. I was messing around with the user id value in another function, which was causing trouble in here!