<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"><!--namespace=绑定一个对应的Dao/Mapper接口--><mappernamespace="com.qk.mapper.StudentMapper"><selectid="queryStudentList"resultType="student">
select * from student;
</select><selectid="queryStudentById"resultType="student">
select * from student where id = #{id};
</select><insertid="addStudent"parameterType="student">
insert into student (id,name,pwd) value (#{id},#{name},#{pwd});
</insert><deleteid="deleteStudentById"parameterType="Integer">
delete from mybatis.student where id = #{id};
</delete><updateid="updateStudentById"parameterType="student">
update student set name=#{name},pwd=#{pwd} where id=#{id}
</update></mapper>