pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: tango ward <tangoward15@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: ON CONFLICT DO UPDATE
Date: Thu, 10 May 2018 06:24:50 -0700
Message-ID: <c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com> (raw)
In-Reply-To: <CAA6wQLLSjO0Hy_fkgzu1Ya89gaitvzxDHPQxdyU=n=6W8X3Eww@mail.gmail.com>
References: <CAA6wQL+Os7BMmowFQqBYLZJdmw6faGn+xbe=OpRa7u7mqC=joQ@mail.gmail.com>
	<8c437506-072c-7829-b649-fd2a4a5ecc69@aklaver.com>
	<CAA6wQLLSjO0Hy_fkgzu1Ya89gaitvzxDHPQxdyU=n=6W8X3Eww@mail.gmail.com>

On 05/09/2018 09:50 PM, tango ward wrote:

Ccing list.
> 
> Hi,
> 
> this is the my ON CONFLICT CODE
> 
> ON CONFLICT (school_system_id,
>                                        student_id,
>                                        campus_name
>                                        ) DO UPDATE
>                                SET school_system_id = 
> excluded.school_system_id,
>                                    student_id = excluded.student_id,
>                                    campus_name = excluded.campus_name
> 
> These are the fields that shows on error when I hadn't implemented the 
> ON CONFLICT. These are the duplicate fields.
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (8+ messages)

Message-ID: <c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com>
Permalink:  ../c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com/
Also on:    postgresql.org/message-id/c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, tangoward15@gmail.com
  Subject: Re: ON CONFLICT DO UPDATE
  In-Reply-To: <c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com>
  References: <CAA6wQL+Os7BMmowFQqBYLZJdmw6faGn+xbe=OpRa7u7mqC=joQ@mail.gmail.com> <8c437506-072c-7829-b649-fd2a4a5ecc69@aklaver.com> <CAA6wQLLSjO0Hy_fkgzu1Ya89gaitvzxDHPQxdyU=n=6W8X3Eww@mail.gmail.com> <c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox