The term CDATA refers to textual data (unparsed Character data) that should not be parsed by the XML parser.
In XML elements, "<" and "&" are illegal.
"<" generates an error because the parser interprets the character as the beginning of the new element.
"&" also generates an error because the parser interprets the character as the beginning of the character entity.
Some text, such as JavaScript code, contains a large number of "<" or "&" characters. To avoid errors, you can define the script code as CDATA.
All content in the CDATA section is ignored by the parser.
CDATA part by "<! [cdata[] begins with the end of "]]>":
When writing SQL statements in the mapper file, it is recommended to use <![when encountering special characters, such as:<, etc. cdata[SQL statement]]> tag, wrap SQL statement, not parsed by parser
For example, the query here requires a symbol greater than or equal to it, but the "<" symbol in XML is illegal and cannot be parsed. The backend will also get an error, so we'll wrap the SQL here with CDATA. So you can parse it normally.
The use of CDATA tags in mapper