[GENERAL] Merge - Insert Select

Поиск
Список
Период
Сортировка
От Susan Hurst
Тема [GENERAL] Merge - Insert Select
Дата
Msg-id a555a931f7634d59081023162c4630b4@mail.brookhurstdata.net
обсуждение исходный текст
Ответы Re: [GENERAL] Merge - Insert Select
Список pgsql-general
What is the best practice for doing an INSERT...SELECT statement for new 
values only.  Existing values must be excluded from the insert.

Does postgres have a MERGE statement ala Oracle?

I have found examples online for INSERT...ON CONFLICT DO NOTHING, but 
all of those examples use VALUES statements, which is not the scenario 
that I have.

Thanks for your help!

Sue

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Susan E Hurst
Principal Consultant
Brookhurst Data LLC
Email: susan.hurst@brookhurstdata.com



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления:

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] "Shared strings"-style table
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: [GENERAL] Merge - Insert Select