随笔 - 631,  文章 - 0,  评论 - 84,  阅读 - 225万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

随笔分类 -  mybate

不积跬步无以至千里 不积小流无以成江河
mybatis foreach方法遍历对象
摘要:<delete id="deleteAppUserByIds"> delete from app_userinfo where <foreach item="item" index="key" collection="ids" open="" separator="," close=""> user 阅读全文
posted @ 2019-12-18 10:02 微笑点燃希望 阅读(4458) 评论(0) 推荐(0) 编辑
MyBatis的foreach语句详解
摘要:foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item表示集合中每一个元素进行迭代时的别名,index指 定一个名字,用于表示在迭代过程中,每次迭代到 阅读全文
posted @ 2019-12-17 15:23 微笑点燃希望 阅读(1486) 评论(0) 推荐(0) 编辑
mybatis generator 源码学习
摘要:mybatis/generator 源码地址mybatis/parent 源码地址1. 分别点击Download ZIP下载到本地。 2. 解压generator-master.zip中的core到generator-master目录,然后解压parent-master.zip中的pom.xml到g 阅读全文
posted @ 2019-02-25 10:02 微笑点燃希望 阅读(204) 评论(0) 推荐(0) 编辑
mybatis批量更新update-设置多个字段值 报错 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near
摘要:mybatis批量更新update-设置多个字段值 2016年08月01日 12:49:26 姚一号 阅读数:29539 标签: mysql mybatis批量更新批量更新allowMultiQuerie更多 个人分类: mybatis mybatis批量更新update-设置多个字段值 2016年 阅读全文
posted @ 2018-09-19 01:59 微笑点燃希望 阅读(3363) 评论(0) 推荐(0) 编辑
整合使用持久层框架mybatis 使用SqlSessionTemplate模板类与使用映射接口 对比
摘要:spring中整合使用mybatis的用法总结 一:在Spring配置Mybatis 第一步:将mybatis-spring类包添加 到项目的类库中 第二步:编写spring和持久层衔接的xml文件,这里起名为spring-dao.xml <!-- 3:配置SqlSessionFactory对象 - 阅读全文
posted @ 2018-08-05 15:12 微笑点燃希望 阅读(354) 评论(0) 推荐(0) 编辑
Mybateis mapper 接口 example 用法
摘要:注意:希望通过此篇文章分享 可以使大家对mapper接口以及example 用法更加深入理解 MyBatis的Mapper接口以及Example的实例函数及详解 一、mapper接口中的方法解析 mapper接口中的函数及方法 方法功能说明 int countByExample(UserExampl 阅读全文
posted @ 2018-02-06 18:05 微笑点燃希望 阅读(1120) 评论(0) 推荐(0) 编辑

font=white
点击右上角即可分享
微信分享提示