You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request]: INSERT ... ON DUPLICATE KEY UPDATE Statement #6567
If you specify an ON DUPLICATE KEY UPDATE clause and a row to be inserted would cause a duplicate value in a UNIQUE index or PRIMARY KEY, an UPDATE of the old row occurs. For example, if column a is declared as UNIQUE and contains the value 1, the following two statements have similar effect:
INSERT INTO t1 (a,b,c) VALUES (1,2,3)
ON DUPLICATE KEY UPDATE c=c+1;
UPDATE t1 SET c=c+1 WHERE a=1;
Describe implementation you've considered
No response
Documentation, Adoption, Use Case, Migration Strategy
Activity
domingozhang commentedon Nov 21, 2022
need to be discussed with yuanning
22 remaining items
dengn commentedon Jul 11, 2023
doc needs to keep up @lacrimosaprinz .
dengn commentedon Jan 2, 2024
feature implemented.