凯哥Java
【已解决】ShardingSphere 使用记录,ShardingException: Can not update sharding key, logic table: [user_log]解决
关注作者
腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
凯哥Java
社区首页
>
专栏
>
【已解决】ShardingSphere 使用记录,ShardingException: Can not update sharding key, logic table: [user_log]解决
【已解决】ShardingSphere 使用记录,ShardingException: Can not update sharding key, logic table: [user_log]解决
凯哥Java
关注
发布于 2022-12-16 18:36:23
发布于 2022-12-16 18:36:23
2.8K
0
举报
文章被收录于专栏:
凯哥Java
凯哥Java
ShardingException: Can not update sharding key, logic table: [user_log]
直议 : 不能更新 分片的列 看代码发现 update 的逻辑是 分片的列必须在where条件里 并且必须同 更新的值相同。
简单一句话:在更新的时候,要把分表的字段带上
本文参与
腾讯云自媒体同步曝光计划
,分享自作者个人站点/博客。
原始发表:2022-03-30 ,如有侵权请联系
cloudcommunity@tencent.com
删除
前往查看
key
logic
sharding
table
目录
ShardingException: Can not update sharding key, logic table: [user_log]
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档