From d67062f6dd4b1de53a9667d624dd27cfe3416aad Mon Sep 17 00:00:00 2001 From: Ihar Hancharenka Date: Thu, 6 Apr 2023 09:44:57 +0300 Subject: [PATCH] m --- db/sql/postgres/feature/dml/on-conflict.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 db/sql/postgres/feature/dml/on-conflict.txt diff --git a/db/sql/postgres/feature/dml/on-conflict.txt b/db/sql/postgres/feature/dml/on-conflict.txt new file mode 100644 index 000000000..b85116c3f --- /dev/null +++ b/db/sql/postgres/feature/dml/on-conflict.txt @@ -0,0 +1,5 @@ +https://www.postgresql.org/docs/current/sql-insert.html#SQL-ON-CONFLICT +https://www.prisma.io/dataguide/postgresql/inserting-and-modifying-data/insert-on-conflict +https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-upsert/ + +ON CONFLICT (field_id) DO UPDATE SET field_name = EXCLUDED.field_name;