addBatch() not working?
Posted by: lsotoc
Date: September 08, 2005 11:26AM

Hi;


I tried executing a batch of SQL prepareStatement using the addBatch() in a loop. After executing the pstmt.executeBatch() and the connection.commit() only one row is created in the table.

I currently use MySQL V4.1.12a, mysql-connector-java-3.1.8a and windows XP

Are there any issues related to addBatch() and and mysql.?

Thanks in advance

lasc

Options: ReplyQuote


Subject
Written By
Posted
addBatch() not working?
September 08, 2005 11:26AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.