Mybatis.xml file is greater than or less

The first written:

原符号 < <= > >= & ' "
替换符号 &lt; &lt;= &gt; &gt;= &amp; &apos; &quot;
例如:sql如下:
create_date_time &gt;= #{startTime} and create_date_time &lt;= #{endTime}

The second writing:
greater than or equal
<[=]> CDATA [] !>
Less
<[CDATA [<=]] !>
Example: sql follows:
create_date_time <! [CDATA [> =]]> # {} and the startTime create_date_time <! [CDATA [<= ]]> # {endTime}






For query is directly above and below that is> = or <=

mysql> select * from tables1 where log_date >= '2017-06-25' and log_date <= '2017-07-01';

  https://www.cnblogs.com/wdpnodecodes/p/8109112.html

The first written:

原符号 < <= > >= & ' "
替换符号 < <= > >= & ' "
例如:sql如下:
create_date_time >= #{startTime} and create_date_time <= #{endTime}

The second writing:
greater than or equal
<[=]> CDATA [] !>
Less
<[CDATA [<=]] !>
Example: sql follows:
create_date_time <! [CDATA [> =]]> # {} and the startTime create_date_time <! [CDATA [<= ]]> # {endTime}

Guess you like

Origin www.cnblogs.com/isme-zjh/p/12194597.html