Re: Insert data if it is not existing

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Insert data if it is not existing
Дата
Msg-id CAKFQuwaJWA_W7Lq_HcXo0jYR8PGJjGZsNPAbDChOR9u1QLCpEQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Insert data if it is not existing  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Insert data if it is not existing  (tango ward <tangoward15@gmail.com>)
Список pgsql-general
On Wednesday, May 23, 2018, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
INSERT INTO my_table(%s, %s)
WHERE NOT EXISTS(SELECT name FROM my_table WHERE name= %s)

INSERT doesn't have a where clause...

David J. 

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Insert data if it is not existing
Следующее
От: tango ward
Дата:
Сообщение: Re: Insert data if it is not existing