package com.liu.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import com.liu.pojo.Students;
public interface StudentsMapper {
@Select("select * from student")
List<Students> show();
@Select("select count(*) from student ")
int selCount();
@Select("select * from student limit #{0},#{1}")
List<Students> selBypage(int pageStart,int pageSize);
@Update("update student set name=#{name} , sort=#{sort} , remark=#{remark} where id=#{id}")
int updateStu(Students stu);
@Delete("delete from student where id=#{id}")
int deleteStu(int id);
@Select("select * from student where name like CONCAT(CONCAT('%', #{sdfa}), '%')")
List<Students> sel(String nickname);
@Select("select * from student where sort=#{stuSort}")
Students selBySort(int stuSort);
@Insert("insert into student (name,sort,remark) values ( #{name} , #{sort} , #{remark})")
int insertStu(Students Stu);
}
最近下载更多
hongdongdong LV14
2024年6月17日
沈从文 LV3
2024年1月1日
aaa5849310 LV25
2022年3月10日
543666826 LV34
2021年11月20日
Gxb001020 LV10
2021年6月18日
酒后少年 LV6
2021年5月15日
liuxie LV12
2021年4月16日
hdf999 LV12
2021年4月3日
张先生1121 LV3
2021年1月11日
snowing_for LV9
2020年9月16日
最近浏览更多
超级无敌神圣大帅比 LV1
3月28日
LZPCJM LV1
2024年11月19日
wanderingsoul LV2
2024年6月15日
xin xie LV1
2024年6月13日
hongdongdong LV14
2024年6月12日
szwanx
2024年5月18日
暂无贡献等级
沈从文 LV3
2023年12月31日
微信网友_6802139027345408 LV2
2023年12月31日
taoshen95 LV16
2023年12月25日
wwwww816 LV5
2023年12月19日

