File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Insert into DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Insert into DB2" Watch "Insert into DB2" New topic
Author

Insert into DB2

Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
Hi,
I tried to insert a record into DB2 7.2 on Windows 2000 server. I used JDBC and JSP.
After executing the code, the executeUpdate(StrSql) method returned 1. But when I check the database table, the record was not in the table. This problem also happened when updating or deleting record.
I can insert into the table directly using Command Center.
Can someone help?
[ July 22, 2002: Message edited by: Mike Yu ]

Thanks,<br />Mike
 
wood burning stoves
 
subject: Insert into DB2