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,839
  • 4
  • 22
  • 36

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
  • 14,525
  • 2
  • 24
  • 39