Re: [HACKERS] Efficient DELETE Strategies

Поиск
Список
Период
Сортировка
От Barry Lind
Тема Re: [HACKERS] Efficient DELETE Strategies
Дата
Msg-id 3D05436F.5040008@xythos.com
обсуждение исходный текст
Ответ на Efficient DELETE Strategies  (Christoph Haller <ch@rodos.fzk.de>)
Список pgsql-sql
This

Hannu Krosing wrote:
> DELETE relation_expr FROM relation_expr [ , table_ref [ , ... ] ]
>      [ WHERE bool_expr ]


This in some ways is similar to Oracle where the FROM is optional in a 
DELETE (ie. DELETE foo WHERE ...).  By omitting the first FROM, the 
syntax ends up mirroring the UPDATE case:

DELETE foo FROM bar WHERE ...

UPDATE foo FROM bar WHERE ...

However I think the syntax should also support the first FROM as being 
optional (even though it looks confusing):

DELETE FROM foo FROM bar WHERE ...

thanks,
--Barry



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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Efficient DELETE Strategies
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Efficient DELETE Strategies