随笔分类 - mybatis
摘要:<where></where>标签的作用就在于,若你拼接的第一条语句前面有and则自动去除and 1,<if title=””></if> <select id="queryBlogIF" parameterType="Map" resultType="Blog"> select * from my
阅读全文
摘要:1,推荐用第一种 <select id="getTeacher2" resultMap="TeacherStudent"> select s.id sid,s.name sname,t.id tid,t.name tname from teacher t,student s where s.tid=
阅读全文