• notice
  • Congratulations on the launch of the Sought Tech site

MyBatis handles greater than, less than, greater than or equal to, and less than or equal to in sql

The reason for the problem:

          Since the SQL of mybatis is configured in the mapper.xml file, all xml parsing <,> ,<= ,>= will go wrong, so how to solve it?


-------------------------------------------------- -Solution----------------------------------------------- -------------------------------

To escape:


Original symbol  <   <=   >   >=    &     '      "
Replacement symbol<<=>>=&'"



eg:

             



Note: between does not include equals


Tags

Technical otaku

Sought technology together

Related Topic

0 Comments

Leave a Reply

+