这个spring类BatchPreparedStatementSetter有什么用呢?
任何人都可以给我关于他的 spring 类的简短描述
org.springframework.jdbc.core.BatchPreparedStatementSetter
Can anyone give me short description about his spring class
org.springframework.jdbc.core.BatchPreparedStatementSetter
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它用于一次批量插入多行。
此代码将说明如何使用它。
仔细看看
importEmployees
方法,一切都应该变得清晰起来。It's used for bulk insertion of many rows at once.
This code will illustrate how it's used.
Take a good look at
importEmployees
method, and everything should become clear.batchUpdate 可以使用 JdbcTemplate batchUpdate 方法完成,如下所示。
batchUpdate can be done using JdbcTemplate batchUpdate method as follows..