Oracle sql escape writing of greater than and less than signs in MyBatis

SQL in mybatis is written in the mapper.xml file, and an error occurs when xml parsing <, >, <=, >=, then escape writing should be used.

 

< <= > >= & ' "
&lt; &lt;= &gt; &gt;= &amp; &apos; &quot;

or

<![CDATA[ sql statement ]]>

 STATUS <![CDATA[  >=  ]]> #{status,jdbcType=VARCHAR}

 

  <![CDATA[  STATUS>= #{status,jdbcType=VARCHAR} ]]> 

Guess you like

Origin blog.csdn.net/qq_39008613/article/details/105074076