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

Поиск
Список
Период
Сортировка
От Laurent ROCHE
Тема generating UPDATE SET ... WHERE PK = ...
Дата
Msg-id 143621.29673.qm@web34414.mail.mud.yahoo.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Bob Pawley
Дата:
Сообщение: Re: PostgreSQL and AutoCad
Следующее
От: David Fetter
Дата:
Сообщение: Re: Delete/Update with order by