This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
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 !!!
Similar Threads
problem while inserting values
My After Insert Trigger is not firing
Insert/Update if no record there
about executeUpdate
Insert statement