MyBatis-动态SQL的if、choose、when、otherwise、trim、where、set、foreach使用

动态SQL是MyBatis最强大的特性之一。用于实现动态SQL的主要元素如下:  1、if  2、choose、when、otherwise  3、trim、where、set  4、foreach 代码示例: 1、if EmpMapper.xml配置 <select id="getEmpByIf" resultType="Emp" parameterType="Emp"> select
相关文章
相关标签/搜索