Example: Nstarfainet SQL XML File Demo

Source: Internet
Author: User
Tags sql

The syntax for all SQL XML files is as shown above, and the statement types are divided into insert,update,delete,select. Variable symbol uniform use $, other such as #, etc symbols this schema does not support!nstarfainet Sal The syntax format of the XML file is somewhat similar to the ibatisnet, but not as powerful and intelligent as ibatisnet, but very simple! Ibatisnet's SQL Map statement does not seem to handle special characters such as $, and Nstarfainet has made some improvements in this regard.

<?xml version= "1.0" encoding= "Utf-8"?>
<statements>
<select id= "Selecttest" >
SELECT * FROM Bsi_test where 1=1
<dynamics>
<dynamic prepend= "and" property= "Test_name" value= "Upper (Test_name) =upper (' $test _name$ ')"/>
</dynamics>
ORDER BY test_id
</select>
</statements>



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.