File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes Insert into DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Insert into DB2" Watch "Insert into DB2" New topic

Insert into DB2

Mike Yu
Ranch Hand

Joined: Nov 17, 2001
Posts: 175
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
I agree. Here's the link:
subject: Insert into DB2
jQuery in Action, 3rd edition