jQuery in Action, 2nd edition
The moose likes JDBC and Relational Databases and the fly likes which exception is thrown on duplicates 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 "which exception is thrown on duplicates" Watch "which exception is thrown on duplicates" New topic
Author

which exception is thrown on duplicates

Anchit Jindal
Greenhorn

Joined: Feb 03, 2010
Posts: 21
which exception is thrown if we try to insert a duplicate value in primary key column of a table in java?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 41984
    
  31
Try it and see . . .
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: which exception is thrown on duplicates