ibaits在刚开始使用的时候总是会出现各种错误而自己确实检查不出来
对于这种错误,你可以去检查是不是sql语句缺少“#”。
insert into TBL_CONTRACT_TEMPLATE_INFO(TEMPLATE_CODE,CONTEXT,TEMPLATE_DESC,TEMPLATE_TYPE,STATUS,UPLOAD_TIME,LAST_UPDATE_ORG,LAST_UPDATE_ACC,LAST_UPDATE_TIME,RESERVED1,RESERVED2,RESERVED3) values (#templateCode#,#context,#templateDesc#,#templateType#,#status#,to_char(current_timestamp,'yyyyMMdd'),#lastUpdateOrg#,#lastUpdateAcc#,to_char(current_timestamp,'yyyyMMdd'),#reserved1#,#reserved2#,#reserved3#)
如上面的语句,就是在第二个单词处缺少“#”。
转载于:https://blog.51cto.com/xuxy0303/1621106