Re: Add Missing From?

Поиск
Список
Период
Сортировка
От Andreas Pflug
Тема Re: Add Missing From?
Дата
Msg-id 41196F1A.2010503@pse-consulting.de
обсуждение исходный текст
Ответ на Re: Add Missing From?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
It's been agreed that the keyword should
>   be USING, to avoid anything as confusing as DELETE FROM a FROM b.

FYI,

MSSQL says

DELETE [FROM]    {tablename} [FROM {<tablesource> [, ...] ] [WHERE <condition>]


Note that the first FROM is optional (as in Oracle), we can have

DELETE a FROM b

The USING would be in place of the mandatory FROM in MSSQL. And why use 
a different keyword for the same thing in DELETE and UPDATE?

DELETE a FROM b
UPDATE a FROM b
DELETE FROM a USING b


Regards,
Andreas


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: Add Missing From?
Следующее
От: Joe Conway
Дата:
Сообщение: terminated by signal 6 problem