MySQL多台更新列分配顺序
阅读文档
单表 UPDATE 分配通常从左到右计算 正确的。对于多表更新,不能保证 分配以任何特定顺序执行。
我无法弄清楚“评估”是否与“分配”相同
set col1 = (@v := col1) + 1, col2 = @v
在多表更新中,col2
总是具有col1的原始值?
Reading the documentation
Single-table UPDATE assignments are generally evaluated from left to
right. For multiple-table updates, there is no guarantee that
assignments are carried out in any particular order.
I can't figure out if "evaluation" is the same as "assignment"
set col1 = (@v := col1) + 1, col2 = @v
In a multiple-table update, will col2
always have the original value of col1
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论