merge statement gives error

Поиск
Список
Период
Сортировка
От Abhra Kar
Тема merge statement gives error
Дата
Msg-id CAFNULEdVuT0WmCqM15_oOsuW3CS9g1oPdQQ8=MW+hH+-hvJkQQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: merge statement gives error  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general

Hi,

       Trying to execute the following statement ---- 


merge into ABC as n using dual on (n.id=123)

when matched update set aaa=222, bbb=333

 when not matched insert (id, aaa) values (NEXTVAL(id),555);


but gives syntax error.What should be the proper syntax[ Parameter values are properly passed based on data type].

Thanks 

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

Предыдущее
От: Łukasz Jarych
Дата:
Сообщение: Re: Creating complex track changes database - challenge!
Следующее
От: Tom Kazimiers
Дата:
Сообщение: Re: Unexpected behavior with transition tables in update statementtrigger