Skip site navigation (1) Skip section navigation (2)

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: (view raw, whole thread or download thread mbox)
Lists: pgadmin-support

I would like to generate with a request a SQL order like 
 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) ?

The Computing Froggy

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


pgadmin-support by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group