报错: -错误的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).

最新文章

  1. 深入理解IIS的多线程工作机制
  2. 初窥Javascript单元测试,附带掌握一门新技能的学习方式。
  3. 第 31 章 项目实战-PC端固定布局[2]
  4. JQuery,拼接字符串问题(求助)
  5. Android流畅度测试
  6. KMP算法的Next数组详解
  7. C陷阱与缺陷 2
  8. 转载:10个实用的但偏执的Java编程技术
  9. apache开源项目--Apache POI
  10. 【HDOJ】2414 Chessboard Dance
  11. html5 学习笔记
  12. XCode所有版本
  13. 手机自动化测试:appium源码分析之bootstrap十
  14. CSS display和visibility的用法和区别
  15. Visualize Code with Visual Studio
  16. PostgreSql之在group by查询下拼接列字符串
  17. JavaWeb网上商城项目中sql语句问题的解决
  18. Yii2总结
  19. ACM找bug方案
  20. 《剑指offer》-链表的第一个公共节点

热门文章

  1. DOM Exception error
  2. Browsing contexts 浏览器上下文
  3. jQuery选择器(基本过滤选择器)第三节
  4. Python 字典和json的本质区别(个人理解)
  5. 谈一次java web系统的重构思路
  6. 对SQL Server事务的4个隔离级别的理解
  7. 《天书夜读:从汇编语言到windows内核编程》二 C语言的流程与处理
  8. Upgrading an ASP.NET MVC 2 Project to ASP.NET MVC 3 Tools Update
  9. ORA-01843: 无效的月份
  10. 将传统项目改造为SSM框架的项目