MyBatis 里面的动态 Sql 是怎么设定的?用什么语法?

答案解析

用 <if>、<choose>、<when>、<otherwise>、<where>、<set>、<foreach> 等 XML 标签,根据条件动态拼接 SQL。