Re: [GENERAL] Dynamic update

From: "Aaron J(dot) Seigo" <aaron(at)gtv(dot)ca>
To: Simon Drabble <simon(at)eskimo(dot)com>, Postgres Group <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] Dynamic update
Date: 1999-11-03 20:43:16
Message-ID: 99110313450205.00702@stilborne
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

hi...

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

> 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?

i don't know if pl/pgsql fits your definition of an "external function", but...
if not... a simple pl/pgsql function would do this handily...

--
Aaron J. Seigo
Sys Admin

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Aaron J. Seigo 1999-11-03 20:48:43 Re: [GENERAL] Dynamic update
Previous Message Scott Perkins 1999-11-03 20:15:20 PHP4 Review "Brand New" its HOT!