Jump to content

INSERT INTO ON DUPLICATE KEY UPDATE -- Possible?


This topic is 1361 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Hi,

I'd like to INSERT new records, but only, when they not already exist. Otherwise I‘d need to update existing records.

There is a handy command in MySQL and I wonder if there’s a workaround for our SQL92 engine?

INSERT INTO table (column_list) VALUES (value_list) ON DUPLICATE KEY UPDATE c1 = v1, c2 = v2, ...;

Thanks a lot for your comments!

Gary

 

Link to comment
Share on other sites

This topic is 1361 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.