db2 update 异常
2024-08-26 18:25:30
报错: -错误的sql语句:update Persons SET FirstName = 'Fred' WHERE id_P = 1
com.ibm.db2.jcc.am.SqlException: Operation not allowed for reason code "7" on table "ECCOM.PERSONS".. SQLCODE=-668, SQLSTATE=57016, DRIVER=3.72.30
解决:
db2 "reorg table tabname";
原因:
之前可能是有表结构变动 用此命令重构一下 就ok了
The table is in the reorg pending state. This can occur after an ALTER TABLE statement containing a REORG-recommended operation.7
Reorganize the table using the REORG TABLE command (note that INPLACE REORG TABLE is not allowed for a table that is in the reorg pending state).
最新文章
- 深入理解IIS的多线程工作机制
- 初窥Javascript单元测试,附带掌握一门新技能的学习方式。
- 第 31 章 项目实战-PC端固定布局[2]
- JQuery,拼接字符串问题(求助)
- Android流畅度测试
- KMP算法的Next数组详解
- C陷阱与缺陷 2
- 转载:10个实用的但偏执的Java编程技术
- apache开源项目--Apache POI
- 【HDOJ】2414 Chessboard Dance
- html5 学习笔记
- XCode所有版本
- 手机自动化测试:appium源码分析之bootstrap十
- CSS display和visibility的用法和区别
- Visualize Code with Visual Studio
- PostgreSql之在group by查询下拼接列字符串
- JavaWeb网上商城项目中sql语句问题的解决
- Yii2总结
- ACM找bug方案
- 《剑指offer》-链表的第一个公共节点
热门文章
- DOM Exception error
- Browsing contexts 浏览器上下文
- jQuery选择器(基本过滤选择器)第三节
- Python 字典和json的本质区别(个人理解)
- 谈一次java web系统的重构思路
- 对SQL Server事务的4个隔离级别的理解
- 《天书夜读:从汇编语言到windows内核编程》二 C语言的流程与处理
- Upgrading an ASP.NET MVC 2 Project to ASP.NET MVC 3 Tools Update
- ORA-01843: 无效的月份
- 将传统项目改造为SSM框架的项目