sql语句是这样的SELECT * FROM #table# WHERE ID <= (SELECT ID   FROM  #table#  WHERE                 history_date=#history_date#     AND    history_time=#history_date# );我在sqlmap里面
<select id="getAllList" parameterClass="java.util.Map" resultClass="wh">
SELECT * FROM #table# WHERE ID  <![CDATA[<=  ]]>(SELECT  ID FROM  #table#  WHERE
 
  <isNotEmpty prepend="AND" property="history_date">
       history_date=#history_date#
    </isNotEmpty>
<isNotEmpty prepend="AND" property="history_time">
history_time=#history_time#
</isNotEmpty>

<![CDATA[
  )
    ]]>

</select>
在log4j看的封装语句是对的 但是一直抱一个错误求大神帮我下!很急!谢谢了 小弟分不多