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 record --- PLEASE HELP !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Insert record --- PLEASE HELP !!!" Watch "Insert record --- PLEASE HELP !!!" New topic

Insert record --- PLEASE HELP !!!

suresh pillai

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.
//executeUpdate statements
}catch (SQLException sqle) {
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?
I agree. Here's the link:
subject: Insert record --- PLEASE HELP !!!
It's not a secret anymore!