0

Is there an "update if not exists insert" function in Redshift, like replace in MySQL?

If not, what should I do instead?

user3600910
  • 2,519
  • 4
  • 20
  • 34

1 Answers1

-2

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

Bernd Buffen
  • 13,762
  • 2
  • 22
  • 34