批量处理方法:
1、Statement
2、prepareStatement
3、addBatch、executeBatch
Statement:
![](https://img.haomeiwen.com/i2129040/28a8db2cf5068e63.png)
prepareStatement:
![](https://img.haomeiwen.com/i2129040/8495d46bd80d81df.png)
addBatch、executeBatch:
![](https://img.haomeiwen.com/i2129040/674337fc65c871b0.png)
addBatch、executeBatch 这个方式做批量处理效率是最高的。
以上为本人的一些学习笔记,如有出错欢迎指正,陆续更新!!!
1、Statement
2、prepareStatement
3、addBatch、executeBatch
addBatch、executeBatch 这个方式做批量处理效率是最高的。
以上为本人的一些学习笔记,如有出错欢迎指正,陆续更新!!!
本文标题:JDBC 批量处理
本文链接:https://www.haomeiwen.com/subject/jokzxqtx.html
网友评论