ORA-00933: SQL command not properly ended
发布网友
发布时间:2022-11-10 14:10
我来回答
共1个回答
热心网友
时间:2023-11-25 19:17
sql批量插入值,不应该是这样吗
<foreach collection="list" item="item" index="index" separator=";" >
insert into hr_person_rec_tmpes
(PERSONID,SINGSNAME,SINGSVALUES,INPUTTIME,WARCODE)
values (#{item.PERSONID},#{item.SINGSNAME},#{item.SINGSVALUES},#{item.INPUTTIME},#{item.WARCODE})
</foreach>追问
(#{item.PERSONID,jdbcType=VARCHAR},#{item.SINGSNAME,jdbcType=VARCHAR},#{item.SINGSVALUES,jdbcType=VARCHAR},#{item.INPUTTIME,jdbcType=TIMESTAMP},#{item.WARCODE,jdbcType=VARCHAR})
现在报错ORA-00911: invalid character
热心网友
时间:2023-11-25 19:17
sql批量插入值,不应该是这样吗
<foreach collection="list" item="item" index="index" separator=";" >
insert into hr_person_rec_tmpes
(PERSONID,SINGSNAME,SINGSVALUES,INPUTTIME,WARCODE)
values (#{item.PERSONID},#{item.SINGSNAME},#{item.SINGSVALUES},#{item.INPUTTIME},#{item.WARCODE})
</foreach>追问
(#{item.PERSONID,jdbcType=VARCHAR},#{item.SINGSNAME,jdbcType=VARCHAR},#{item.SINGSVALUES,jdbcType=VARCHAR},#{item.INPUTTIME,jdbcType=TIMESTAMP},#{item.WARCODE,jdbcType=VARCHAR})
现在报错ORA-00911: invalid character