aspose file tools*
The moose likes JDBC and the fly likes Insert record --- PLEASE HELP !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Insert record --- PLEASE HELP !!!" Watch "Insert record --- PLEASE HELP !!!" New topic
Author

Insert record --- PLEASE HELP !!!

suresh pillai
Greenhorn

Joined: Oct 30, 2003
Posts: 23
Hi all,
This is Java-Oracle issue.
Iam trying to insert the record and the record gets updated only when I try to violate the unique constraint on the table. Whenever the sqlException is thrown the table gets updated.
try{
//executeUpdate statements
}catch (SQLException sqle) {
System.err.println(sqle.getMessage());
System.out.println("Error thrown :-"+sqle.toString());
response.sendRedirect(referer + "authenticate=N&" + cgistr);
}
Is this anything to do with the buffer?
Dana Hanna
Ranch Hand

Joined: Feb 28, 2003
Posts: 227
Huh? Come back to Earth. What is your question?
 
Consider Paul's rocket mass heater.
 
subject: Insert record --- PLEASE HELP !!!