Re: MERGE vs REPLACE

Поиск
Список
Период
Сортировка
От Petr Jelinek
Тема Re: MERGE vs REPLACE
Дата
Msg-id 4383A8A8.30805@seznam.cz
обсуждение исходный текст
Ответ на Re: MERGE vs REPLACE  (Jaime Casanova <systemguards@gmail.com>)
Ответы Re: MERGE vs REPLACE  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-hackers
Jaime Casanova wrote:
> 
> the FROM clause is required by default (starting with 8.1) unless you
> change a postgresql.conf parameter.
> 
> and i don't think that idea will have any fan...
> 

Bruce already replied to your first statement so, what idea won't have 
any fan ? It's not that we would change what MERGE does. Postgres just 
does not requeire FROM clause in SELECT and second parameter of MERGE 
can be SELECT which means you can do what REPLACE) does without problems 
and without breaking something or violating standard and like I said you 
can do the same in oracle using dual.

Btw about that keys, oracle gives error on many-to-one or many-to-many 
relationship between the source and target tables.

-- 
Regards
Petr Jelinek (PJMODOS)



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Improving count(*)
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: server closed connection on a select query