conn = DBToolkit.getConnection()
Statement stmt = conn.createStatement()
//连续添加多条SQL
stmt.addBatch("insert into testdb.book (kind, name) values ('java', 'java in aciton')")
stmt.addBatch("insert into testdb.book (kind, name) values ('c', 'c in aciton')")
//执行批量执行
stmt.executeBatch()
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)