Answers for "check if sqlexception is duplicate entry java"

0

check if sqlexception is duplicate entry java

try{
...
}catch(SQLException e){
	if(e.getErrorCode() == 1062 ){
	//duplicate primary key
    }
}
Posted by: Guest on October-16-2020

Code answers related to "check if sqlexception is duplicate entry java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language