First, why should use dynamic SQL
Need to execute SQL commands depending on the different conditions, the corresponding condition can be written in SQL commands, without the need to write SQL statements based on a number of different conditions.
Second, the commonly used tags
Tomorrow summary ...
- <if>
- <where>
- <choose><when>
- <set>
- <trim>
- <bind>
- <foreach>
- <sql><include>