首页 > 代码库 > 解决Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended

解决Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended

是iBATIS.xml这句话出错了  
<isNotEmpty prepend="AND" property="beginDt" >a.updatedate >= #beginDt# </isNotEmpty>
           <isNotEmpty prepend="AND" property="endDt" >a.updatedate >= #endDt# </isNotEmpty>

改成
           <isNotEmpty property="beginDt">and a.updateDate&gt;=#beginDt#</isNotEmpty><!-- 起初日期 -->
   <isNotEmpty property="endDt">and a.updateDate&lt;=#endDt#</isNotEmpty><!-- 结束日期 -->
就好

解决Caused by: java.sql.SQLException: ORA-00933: SQL command not properly ended