• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

batch insertion into database

 
chandrakant shirole
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
i need to insert multiple records from a single transaction into the database.Is there any way in JDBC 1.0 which can help
me for multiple insertion at a time.B'coz i have form which displays multiple records, now i want to insert all these records
at time in a single table.
from
cus
 
Peter Tran
Bartender
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not using JDBC 1.0. You'll need a driver that supports JDBC 2.0 functionality which PreparedStatements. Using PreparedStatements, you can addBatch() and executeBatch().
-Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic