Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

check if sqlexception is duplicate entry java

try{
...
}catch(SQLException e){
	if(e.getErrorCode() == 1062 ){
	//duplicate primary key
    }
}
 
PREVIOUS NEXT
Tagged: #check #sqlexception #duplicate #entry #java
ADD COMMENT
Topic
Name
4+2 =