Re: Toggle a Bit type ie not field

Поиск
Список
Период
Сортировка
От Brent Verner
Тема Re: Toggle a Bit type ie not field
Дата
Msg-id 20010321152003.B1083@rcfile.org
обсуждение исходный текст
Ответ на Toggle a Bit type ie not field  ("Peter Morgan" <mash@daffodil.uk.com>)
Список pgsql-sql
On 20 Mar 2001 at 23:07 (-0000), Peter Morgan wrote:
| Here's the SP that toggles a Bit datatype. How would I make it comething
| like
| ???
| update pcpmanufacturers set def = not (def) where ManufID = @ManufID

update pcpmanufacturers set def=(1-def) where ManufID=@ManufID;

hth.brent

-- - - - - - - - -=(   d a m o n   b r e n t   v e r n e r   )=- - - - - - - - -               c e r t i f i e d   n o
so u r c o p h o b i c
 


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

Предыдущее
От: "Ligia Pimentel"
Дата:
Сообщение: Error when selecting rows from a temporary table in ODBC
Следующее
От: Jie Liang
Дата:
Сообщение: Re: [ADMIN] Re: I cannot vacuum