| От | Leif Biberg Kristensen |
|---|---|
| Тема | Re: Putting an aggregate value in an UPDATE statement... |
| Дата | |
| Msg-id | 201006012343.32625.leif@solumslekt.org обсуждение |
| Ответ на | Re: Putting an aggregate value in an UPDATE statement... (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Putting an aggregate value in an UPDATE statement...
|
| Список | pgsql-novice |
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. However, if you're > claiming there is no possible ambiguity inside a function call, compare: > > select myfunc((select integer_col from foo where bar = 5+4)) > select myfunc((select integer_col from foo where bar = 5)+4) > > These mean different things, and you couldn't tell 'em apart without > the inner parentheses. Right, I get it. Thanks for the explanation. regards, -- Leif Biberg Kristensen http://solumslekt.org/blog/
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера