Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【DB系列】Mybatis之批量插入的几种姿势 | 一灰灰Blog #207

Open
liuyueyi opened this issue Jan 11, 2022 · 1 comment
Open

Comments

@liuyueyi
Copy link
Owner

https://spring.hhui.top/spring-blog/2022/01/11/220111-SpringBoot%E7%B3%BB%E5%88%97Mybatis%E4%B9%8B%E6%89%B9%E9%87%8F%E6%8F%92%E5%85%A5%E7%9A%84%E5%87%A0%E7%A7%8D%E5%A7%BF%E5%8A%BF/

在日常的业务需求开发过程中,批量插入属于非常常见的case,在mybatis的写法中,一般有下面三种使用姿势 单个插入,业务代码中for循环调用 <foreach>标签来拼接批量插入sql 复用会话,拆分小批量插入方式

@liuyueyi
Copy link
Owner Author

mark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant