Dynamic update - Mailing list pgsql-general

From Simon Drabble
Subject Dynamic update
Date
Msg-id Pine.LNX.4.10.9911031335390.19115-100000@dragon.localdomain
Whole thread Raw
Responses Re: [GENERAL] Dynamic update  ("Aaron J. Seigo" <aaron@gtv.ca>)
List pgsql-general
Is it possible to update a column with another column's value, say

UPDATE member SET votes = `SELECT count(votes) FROM ballot WHERE id = 1`;

with or without aggregates?

Tried everything I can think of, searched the docs, reading the finished parts
of Bruce's book...

If not, are there truly dynamic SQL-only (i.e. without resorting to external
functions) ways to achieve this? Am I being obtuse and missing something
obvious?


Simon.

--
 "Linux - open doors, not windows."

   Simon Drabble                      It's like karma for your brain.
   simon@eskimo.com


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [GENERAL] HAVING QUESTION
Next
From: Alain TESIO
Date:
Subject: Re: [GENERAL] Dynamic update