| От | rajanski |
|---|---|
| Тема | Re: Putting an aggregate value in an UPDATE statement... |
| Дата | |
| Msg-id | 1330699524725-5531159.post@n5.nabble.com обсуждение |
| Ответ на | Putting an aggregate value in an UPDATE statement... (John Gage <jsmgage@numericable.fr>) |
| Список | pgsql-novice |
Okay I have a similar but seemingly more complicated Problem with aggregate values in an UPDATE statement: update test set ew_data_vm_fraction = array_agg(unnest(ew_data_vm) * area_percentage) gives me the obvious "ERROR: cannot use aggregate function in UPDATE" message when I set i in parentheses update test set ew_data_vm_fraction = (select array_agg(unnest(ew_data_vm) * area_percentage) from test it results in the message: "ERROR: set-valued function called in context that cannot accept a set" i am really desperate,what can I try else? Greeting -- View this message in context: http://postgresql.1045698.n5.nabble.com/Putting-an-aggregate-value-in-an-UPDATE-statement-tp2140836p5531159.html Sent from the PostgreSQL - novice mailing list archive at Nabble.com.
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера