Is there an "update if not exists insert" function in Redshift, like replace
in MySQL?
If not, what should I do instead?
Is there an "update if not exists insert" function in Redshift, like replace
in MySQL?
If not, what should I do instead?
there is a other way
INSERT INTO table (a,b,c) VALUES (1,2,3),(4,5,6) ON DUPLICATE KEY UPDATE c=VALUES(a)+VALUES(b);
https://mariadb.com/kb/en/mariadb/insert-on-duplicate-key-update/
you right, sorry