Xml file is larger than the write mybatis sql statement, greater than or equal, less than, less than or equal wording

Mybatis.xml file is greater than or less

The first written:
Symbol escape character
<& lt;
<= & lt; =
> & gt;
> = & gt; =
& & amp;
'& apos,;
"& quot;

For example: sql follows:

date_sub(curdate(),interval 1 month) <![CDATA[ <= ]]> date(c.create_time)

The second writing:

Greater than <! [CDATA [>]]>

Greater than or equal <! [CDATA [> =]]>

Less than <! [CDATA [<]]>

Less <! [CDATA [<=]]>


例如:sql如下:date_sub(curdate(),interval 1 month) <![CDATA[ <= ]]> date(c.create_time)

Published 85 original articles · won praise 197 · views 330 000 +

Guess you like

Origin blog.csdn.net/weixin_43970743/article/details/104054140
Recommended