What are peoples' thoughts on the most performance efficient way to do the following query:
3 column table
if the combination of
col_1
andcol_2
values already existUPDATE col_3
else
INSERT
new row
I assume i need some kind if UPDATE ON DUPLICATE KEY (which i've never used before), however I do not have a 'KEY' but instead a pair of two values (columns) to make a key...