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: 

 

This Question has 3 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on JDBC primary key doubt Or get search suggestion and latest updates.


Tagged: