Re: Putting an aggregate value in an UPDATE statement...

Поиск
Список
Период
Сортировка
От John Gage
Тема Re: Putting an aggregate value in an UPDATE statement...
Дата
Msg-id 8F62B3B7-BCBB-4E90-A009-1D2083AA9621@numericable.fr
обсуждение исходный текст
Ответ на Re: Putting an aggregate value in an UPDATE statement...  (Leif Biberg Kristensen <leif@solumslekt.org>)
Ответы Re: Putting an aggregate value in an UPDATE statement...  (rajanski <raliski@gmail.com>)
Список pgsql-novice
In the first place, thanks a very great deal for all the feedback.
Much appreciated.

In the second, the UPDATE statement I used as an example was really a
kludge because I could not figure out how to place the same SELECT
COUNT(*) expression into an INSERT statement.  Turns out that by
enclosing _it_ in parentheses, everything is cool.  Superb.

John


> On Tuesday 1. June 2010 23.34.39 Tom Lane wrote:
>> Well, the main point is that the possible ambiguity means that SQL
>> has
>> mandated you put parentheses around any sub-select.

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

Предыдущее
От: Michelle Konzack
Дата:
Сообщение: Re: Invitation to connect on LinkedIn
Следующее
От: "Michael Diener"
Дата:
Сообщение: sum multiple tables gives wrong answer?