CDATA solves the conversion problem of xml greater than less than

In sql, it is inevitable that you will encounter a situation of relatively large size. Because there will be problems in identifying the upper and lower case of the xml file, you need to escape or identify at this time. If you escape, it will not look good. At this time, you can use: <![CDATA[< =]]>

 SELECT
    a.id AS id,b.id AS gpid
    FROM online_confirm a
    LEFT JOIN contract b ON (a.electric_user_name = b.cus_name)
    AND (
    (a.retail_start_time <![CDATA[<=]]> #{onlineConfirmContractDTO.startTime}

Guess you like

Origin blog.csdn.net/weixin_45933454/article/details/126225167
Recommended