aspose file tools*
The moose likes JDBC 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
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: 38865
    
  23
Try it and see . . .
 
Don't get me started about those stupid light bulbs.
 
subject: which exception is thrown on duplicates