
mybatis
Christin_z
冲冲冲!!!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
MyBatis传入多个参数
传入多个参数的方法 #{index} 表示第几个参数 <update id="updateCourseStudent_id" parameterType="int"> update course2 set student_id=#{0} where cid=#{1} </update> 通过注解接口: public void updateCourseStudent_i原创 2017-11-09 20:20:05 · 320 阅读 · 0 评论 -
MyBatis动态SQL
<![CDATA[ ]]> 的作用 <![CDATA[ ]]>是xml语法,在<![CDATA[ ... ]]>的所有内容都会被解析器忽略(特殊字符不转译)<if test=""> <where> <choose> <trim> 这些标签都不会被解析,所有要尽量缩小<![CDATA[ ]]>的使用范围 if <select id="dynamicFindBook1" resultMap=原创 2017-11-10 17:45:30 · 283 阅读 · 0 评论