java - JDBC sql query (batch processing) -


i want make batch update(100 resords) , batch insert(50 records) jdbc in java using single statement want hit database once. how can that?

in java have called prepared statement.in prepared statement have addbatch() , executebatch() methods. these methods can helpful in case. here example : http://viralpatel.net/blogs/batch-insert-in-java-jdbc/


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -