troubleshooting Question

A way to INSERT ... ON DUPLICATE KEY UPDATE in JavaDB

Avatar of maxinfo
maxinfo asked on
DatabasesJavaMySQL Server
22 Comments2 Solutions2070 ViewsLast Modified:
Looking for information on how to do something like mySQL "INSERT ... ON DUPLICATE KEY UPDATE" where

"If you specify ON DUPLICATE KEY UPDATE, and a row is inserted that would cause a duplicate value in a UNIQUE index or PRIMARY KEY, an UPDATE of the old row is performed. For example, if column a is declared as UNIQUE and contains the value 1, the following two statements have identical effect:"

in Java DB.

I have tried a few conditional statements with no success. Any help would be appreciated.

Thanks,
Elliott
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 22 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 22 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros