Re: Toggle a Bit type ie not field - Mailing list pgsql-sql

From Brent Verner
Subject Re: Toggle a Bit type ie not field
Date
Msg-id 20010321152003.B1083@rcfile.org
Whole thread Raw
In response to Toggle a Bit type ie not field  ("Peter Morgan" <mash@daffodil.uk.com>)
List 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 by date:

Previous
From: "Ligia Pimentel"
Date:
Subject: Error when selecting rows from a temporary table in ODBC
Next
From: Jie Liang
Date:
Subject: Re: [ADMIN] Re: I cannot vacuum