Re: generating UPDATE SET ... WHERE PK = ...

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: generating UPDATE SET ... WHERE PK = ...
Дата
Msg-id 473867CA.1010908@lelarge.info
обсуждение исходный текст
Ответ на generating UPDATE SET ... WHERE PK = ...  (Laurent ROCHE <laurent_roche@yahoo.com>)
Список pgadmin-support
Laurent ROCHE a écrit :
> 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) ?
> 

Why don't you use the UPDATE script from pgAdmin's table contextual menu ?

Regards.


-- 
Guillaume.http://www.postgresqlfr.orghttp://dalibo.com


В списке pgadmin-support по дате отправления:

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: Not able to add or remove argument in Parameters tab, Function Properties
Следующее
От: Dave Page
Дата:
Сообщение: Re: Not able to add or remove argument in Parameters tab, Function Properties