关于SqlMap、XML文件的大于号的问题
在一个XML文件中有这样一段SQL语句
- SQL code
<select id="showMy" parameterClass="dto" resultClass="dto"> SELECT [UserId] as userId ,(select top(1)expname from expset where abc.[exp]<=exptotal order by exptotal) as expName FROM [abc] where userid=#userId#</select>
他的报错信息为:
在exp<=这里
标记<缺少结束符号
在XML里面怎么表示大于和小于啊?
[解决办法]
> <
或用 <!CDATA[ ]]>包起。
[解决办法]
参考
http://java.chinaitlab.com/WebServices/717188.html