-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问update更新字段值如何使用表达式 #68
Comments
代码示例: await this.app.mysql.update('post_comment', { id: commentId, replies: new Literal('(replies+1)') }); const updateOptions = [];
updateOptions.push({ id: postId, replies: new Literal(`(replies+${replyCount})`) });
await this.app.mysql.updateRows('post_comment', updateOptions); |
学到了 , 不过您是在哪里看到的呢? 总之谢谢您了 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
row想用表达式 但是这样子不行,请问该怎么做
The text was updated successfully, but these errors were encountered: