selectAll():查询当前mapper对应的pojo的表格的所有数据,封装成List返回
delete(student):
delete from t_student where 条件
传递的参数,是一个pojo的对象,会根据对象的非空属性拼接where条件; student为例,所有属性都非空
where id=** and name=** and gender=**deleteByPrimaryKey(key):利用主键删除数据
delete from t_student where id=**insert(student): 无论属性是空与否,都会拼接字段
insertSelective(student): 空属性的字段不在insert中拼接
insert into t_student (字段们)values(数据参数)select(student):pojo对象的非空字段拼接where条件
selectByPrimaryKey(key):主键值查询一定拼接主键字段名
selectCount(record): 非空属性拼接where条件
selectOne(record):非空属性拼接where条件,确保只有一条返回结果
updateByPrimaryKeySelective(record)updateByPrimaryKey(record)
update t_student set 字段=数据值 where id=值