Re: Why No WHERE clause for INSERT statements

Поиск
Список
Период
Сортировка
От Michael Glaesemann
Тема Re: Why No WHERE clause for INSERT statements
Дата
Msg-id 9F2C1385-A370-4E20-9D48-4272F33DA23B@seespotcode.net
обсуждение исходный текст
Ответ на Why No WHERE clause for INSERT statements  (Maurice Gittens <mainmanmauricio@gmail.com>)
Список pgsql-general
On Aug 17, 2010, at 4:32 , Maurice Gittens wrote:

> More specifically; the INSERT statement is currently defined as:
>
> INSERT INTO table [ ( column [, ...] ) ]
>    { DEFAULT VALUES | VALUES ( { expression | DEFAULT } [, ...] ) [,
> ...] | query }
        ^^^^^

INSERT INTO table [ ( column [, ...] ) ]
  SELECT ...
    WHERE condition

> This syntax would allow tuples to be inserted only when some condition is true.
> What I am missing?

See above.

Michael Glaesemann
grzm seespotcode net




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

Предыдущее
От: Maurice Gittens
Дата:
Сообщение: Why No WHERE clause for INSERT statements
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Why No WHERE clause for INSERT statements