ibatis插入oracle数据库记录出错.

错误日志提示:Caused by: java.sql.SQLException: Select statements cannot be executed as an update.

数据库为oracle数据,sql语法完全可以保证正确.

xml中的语法为

<select id="insertComp" parameterClass="comp">
insert into COMP (BH,YWMC,MC) values(bh#,ywmc#,mc#)
</select>

经调试在运行sql语句前,参数值正确,但不能插入数据,请问板桥大哥是何原因?

》Select statements cannot be executed as an update
Select不能用来作为新增修改用,而你的配置中则用了select