ibatis动态sql配置启动时提示:The content of elements must consist of well-formed character data...ibatis配置如下,高手帮我看看.SELECT L_SERIALNO as serialno,C_CONTENT as content,C_MOBILENO as mobileno,C_DATE as cdate,C_TIME as ctime,C_FUNDACCO as fundacco,L_BACKID as backid,C_TASKCODE as taskcode,C_BACK as back,C_BACKCONTENT as backcontent,C_BACKDATE as backdate,C_BACKTIME as backtime,c_pipe as l_typeFROM TSMS_RECEIVE C_TASKCODE =#taskCode# C_DATE >= #startDate# C_DATE

问题描述:

ibatis动态sql配置启动时提示:The content of elements must consist of well-formed character data...
ibatis配置如下,高手帮我看看.
SELECT L_SERIALNO as serialno,
C_CONTENT as content,
C_MOBILENO as mobileno,
C_DATE as cdate,
C_TIME as ctime,
C_FUNDACCO as fundacco,
L_BACKID as backid,
C_TASKCODE as taskcode,
C_BACK as back,
C_BACKCONTENT as backcontent,
C_BACKDATE as backdate,
C_BACKTIME as backtime,
c_pipe as l_type
FROM TSMS_RECEIVE
C_TASKCODE =#taskCode#
C_DATE >= #startDate#
C_DATE

把下面这个表达式反过来写就可以了
C_DATE = C_DATE
记住:在ibatis的配置文件中不能出现小于号