pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brent Verner <brent@rcfile.org>
To: Peter Morgan <mash@daffodil.uk.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Toggle a Bit type ie not field
Date: Wed, 21 Mar 2001 15:20:03 -0500
Message-ID: <20010321152003.B1083@rcfile.org> (raw)
In-Reply-To: <998ntm$1n41$1@news.tht.net>
References: <998ntm$1n41$1@news.tht.net>

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 s o u r c o p h o b i c



view thread (2+ messages)

Message-ID: <20010321152003.B1083@rcfile.org>
Permalink:  ../20010321152003.B1083@rcfile.org/
Also on:    postgresql.org/message-id/20010321152003.B1083@rcfile.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: brent@rcfile.org, mash@daffodil.uk.com
  Subject: Re: Toggle a Bit type ie not field
  In-Reply-To: <20010321152003.B1083@rcfile.org>
  References: <998ntm$1n41$1@news.tht.net> <20010321152003.B1083@rcfile.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox