db2
truncate table the sql statement is only allowed as the first statement in a unit of work
原因:
在存储过程中使用了truncate这种DDL
解决方法:
db2 truncate table the sql statement is only allowed as the first statement in a unit of work
另外如果不考虑效率问题的话,也可以使用delete的方式
DB2文档参考
The syntax of the string representation of a datetime value is incorrect. SQLSTATE=22007
参考
DB2错误代码参考
根据kettle写存储过程的一些记录:
1、观察sql代码里面有多少个参数,以此来确定存储过程的参数的数量
2、DB2的sql编辑器运行似乎有点不太好使,如果执行sql脚本容易报错的话,可以全选sql语句执行,或者选择中间的按钮在新的页面执行SQL语句
总之,针对这个问题多尝试几个执行的button,大概率错不在你
DB2 update语法
kettle的插入更新组件
更新组件与插入/更新组件的不同之处,更新组件只对数据进行更新