Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Jeff Cunningham   on Jan 22 In Java Category.

  
Question Answered By: Whitney Cruz   on Jan 22

could just run the values through a SELECT first and see if you get any
hits...

resultSet = stmt.executeQuery("select primaryKey where primaryKey=VALUE");

if (!resultSet.next()){
..do update
}

Share: