zoukankan      html  css  js  c++  java
  • mybatis在xml文件中处理大于号小于号的方法

    第一种方法:
    
    用了转义字符把>和<替换掉,然后就没有问题了。
    
    
    SELECT * FROM test WHERE 1 = 1 AND start_date  <= CURRENT_DATE AND end_date >= CURRENT_DATE
    
    
    附:XML转义字符
      

                         &lt;                                 

                         <

                         小于号                                           

                         &gt;

                         >                                      

                         大于号

                         &amp;

                         &

                         和

                         &apos;

                         ’

                         单引号

                         &quot;

                         "

                         双引号

  • 相关阅读:
    objc之method&class attributes
    iOS之Export UIAutomation script
    js's forin vs oc's forin
    iOS新加速计事件
    Mac之Font管理
    iOS之VoiceOver
    OC之initialize
    C++常见问题
    objc新老runtime接口类型对比
    dlopen之mode参数详解
  • 原文地址:https://www.cnblogs.com/blogxu/p/lt.html
Copyright © 2011-2022 走看看