Re: ON CONFLICT DO UPDATE

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: tango ward <tangoward15(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ON CONFLICT DO UPDATE
Date: 2018-05-10 13:24:50
Message-ID: c1493d83-36a1-1f1b-a0c2-bdde5a1fb9d1@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(dot)klaver(at)aklaver(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2018-05-10 13:41:04 Re: Domain based on TIMEZONE WITH TIME ZONE
Previous Message nikhil raj 2018-05-10 11:42:51 Re: Why is my Postgre server went in recovery mode all in sudden