- 7
- 0
- 约6.8千字
- 约 20页
- 2021-08-25 发布于四川
- 举报
本章教学内容 基于MyBatis的增删改查操作方法 MyBatis的结果类型(resultMap和resultType)的用法 MyBatis的参数类型 #和$用法 * 基于MyBatis的增删改查操作的开发-update 修改数据-studentMapper.xml中配置如下 update id=update parameterType=com.icss.MyBatis.pojo.Student update student set stu_name=#{stuName}, stu_birthdate=#{stuBirthdate}, stu_phone=#{stuPhone} where stu_id=#{stuId} /update * 基于MyBatis的增删改查操作的开发-delete delete id=delete parameterType=java.lang.Integer delete from student where stu_id=#{stuId} /delete 删除数据 * 基于MyBatis的增删改查操作的开发-read select id=queryById resultMap=BaseResultMap parameterType=java.lang.Integer select * from student where stu_id
原创力文档

文档评论(0)