MySQL Forums
Forum List  »  General

Re: Help with "ON DUPLICATE KEY UPDATE"
Posted by: Rick James
Date: June 18, 2013 08:27PM

INSERT INTO ... (..., pdr, ...) VALUES (..., pdr, ...)
SELECT ..., SUM(pdr) AS pdr, ... FROM ... GROUP BY ...
ON DUPLICATE KEY UPDATE pdr = VALUES(pdr);

Options: ReplyQuote


Subject
Written By
Posted
Re: Help with "ON DUPLICATE KEY UPDATE"
June 18, 2013 08:27PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.