Edward Manda
0
Q:

check if sqlexception is duplicate entry java

try{
...
}catch(SQLException e){
	if(e.getErrorCode() == 1062 ){
	//duplicate primary key
    }
}
0

Tags

New to Communities?

Join the community