generating UPDATE SET ... WHERE PK = ... - Mailing list pgsql-general

From Laurent ROCHE
Subject generating UPDATE SET ... WHERE PK = ...
Date
Msg-id 143621.29673.qm@web34414.mail.mud.yahoo.com
Whole thread Raw
List 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@u
The Computing Froggy



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

pgsql-general by date:

Previous
From: Bob Pawley
Date:
Subject: Re: PostgreSQL and AutoCad
Next
From: David Fetter
Date:
Subject: Re: Delete/Update with order by