Re: simple update on boolean

Поиск
Список
Период
Сортировка
От Frank Millman
Тема Re: simple update on boolean
Дата
Msg-id 20071206101021.009B33F438D@fcserver.chagford.com
обсуждение исходный текст
Ответ на simple update on boolean  (Cedric Boudin <cedric@dreamgnu.com>)
Список pgsql-general
Cedric Boudin wrote:
>
> Most honourable members of the list,
>
> this is a simple one, but I can't find the solution (
> probably a forest/tree problem).
>
> update table set bolean_column = set_it_to_its_inverse where
> fk = some_value;
>

I am usually a newbie around here, but this is one that I can answer :-)

update table set boolean_column = not boolean_column where fk = some_value

HTH

Frank Millman


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

Предыдущее
От: luca.ciciriello@email.it
Дата:
Сообщение: Orthodox use of PQtransactionStatus
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Import LDAP data to a Postgres database