generating UPDATE SET ... WHERE PK = ...

From: Laurent ROCHE <laurent_roche(at)yahoo(dot)com>
To: PGAdmin Support <pggadmin-support(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: generating UPDATE SET ... WHERE PK = ...
Date: 2007-10-31 00:00:13
Message-ID: 143621.29673.qm@web34414.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I would like to generate with a request a SQL order like
UPDATE tab1
SET col_a = ?, col_b = ? ...
WHERE pk = ?

for each table of a given schema (in fact what I want is slightly more complicated but if I can write the above, I will be able to get the rest).

Will anyone be kind enough to share a piece of code doing this (from pgAdmin may be) ?

Cheers,
L(at)u
The Computing Froggy

_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2007-10-31 02:43:47 Re: Delete/Update with order by
Previous Message Bob Pawley 2007-10-30 23:18:21 Re: PostgreSQL and AutoCad