Re: Toggle a Bit type ie not field

From: Brent Verner <brent(at)rcfile(dot)org>
To: Peter Morgan <mash(at)daffodil(dot)uk(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Toggle a Bit type ie not field
Date: 2001-03-21 20:20:03
Message-ID: 20010321152003.B1083@rcfile.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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=(at)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 s o u r c o p h o b i c

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2001-03-21 21:12:28 Re: Re: [SQL] I cannot vacuum
Previous Message Ligia Pimentel 2001-03-21 17:29:09 FULL JOIN