1:简单的查询id要和dao层的方法名一致一定要有resultType,如果查询结果是实体查询时要给列取别名为实体的属性
 
SSM映射文件-mapper.xml中常用的标签,查询条件
 
2:if  where if判断
 
SSM映射文件-mapper.xml中常用的标签,查询条件
 
3:where  choose  when
 
SSM映射文件-mapper.xml中常用的标签,查询条件
 
4:delete from user where id in(10,20)
 
SSM映射文件-mapper.xml中常用的标签,查询条件
 
 
5:简单的update
 
SSM映射文件-mapper.xml中常用的标签,查询条件
6:以上五种,传过来的参数,有的是对象.属性,有的时候是属性。什么时候用对象.属性,什么时候用属性
 
7:
SSM映射文件-mapper.xml中常用的标签,查询条件
SSM映射文件-mapper.xml中常用的标签,查询条件
8:模糊查询
SSM映射文件-mapper.xml中常用的标签,查询条件
 

相关文章:

  • 2021-12-26
  • 2022-12-23
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-09
  • 1970-01-01
猜你喜欢
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2021-11-03
  • 2021-04-19
相关资源
相似解决方案