aspose file tools
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: 40518
    
  28
Try it and see . . .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: which exception is thrown on duplicates