MyBatis learning - Dynamic SQL

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>
Released four original articles · won praise 0 · Views 96

Guess you like

Origin blog.csdn.net/weixin_41881277/article/details/104701931