docs/core/gdb-chaining-update-delete #146
Replies: 2 comments 1 reply
-
|
Counter有个Bug,在非自身字段的自增的时候,Value为0时,没有将views更新为clicks,如下数据示例 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
我不知道这是否是允许的,但是会增加误操作的风险,即在Delete操作时,如果Where条件写错了,没有写字段名,会导致整张表删除。 这是否不满足文档说明的【为安全性保证、防止误操作, Update 及 Delete 方法必须带有 Where 条件才能提交执行,否则将会错误返回】 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
docs/core/gdb-chaining-update-delete
在GoFrame框架中进行ORM链式操作的数据更新和删除。详细阐述了使用Update和Delete方法时需要结合Where条件的重要性。此外,还探讨了通过Counter参数实现字段数值增减的特性,以及使用Increment和Decrement方法对字段进行自增自减的操作。同时,还讲解了嵌入原生SQL语句的技巧和实现软删除的方式,以确保数据处理的灵活性和安全性。
https://goframe.org/docs/core/gdb-chaining-update-delete
Beta Was this translation helpful? Give feedback.
All reactions