关于如何增加preparedstatement executeB

2017-07-12  本文已影响0人  语文报

对于mysql connector的jar包 5.1.7以后的 可以在jdbc url中增加rewriteBatchedStatements=true参数 这样才会使得preparedstatement的addBatch executeBatch变成真正的批量执行 性能最高能提升十倍

上一篇 下一篇

猜你喜欢

热点阅读