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

From: Laurent ROCHE <laurent_roche(at)yahoo(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: generating UPDATE SET ... WHERE PK = ...
Date: 2007-10-31 00:17:27
Message-ID: 294450.134.qm@web34411.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

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

Responses

Browse pgadmin-support by date

  From Date Subject
Next Message Magnus Hagander 2007-10-31 09:57:54 Re: error auto-completing "GRANT SELECT ON"
Previous Message Dave Page 2007-10-30 15:42:22 Re: Error creating a new index with tablespace and fillfacotor