Search Postgresql Archives

Re: ON CONFLICT DO UPDATE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux