pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jason Earl <jearl@box100.com>
To: robert@chalmers.com.au
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Why wont this update work?
Date: Wed, 19 May 1999 07:08:02 -0600
Message-ID: <199905191308.HAA29068@earlj.nesusa.com> (raw)
In-Reply-To: <008d01bea1b2$fc0fd820$1a6001cb@chalmers.com.au>
References: <008d01bea1b2$fc0fd820$1a6001cb@chalmers.com.au>


UPDATE catalog
       SET language = 'NoD'
       WHERE language IS NULL;

Hope that helps,
Jason


   Hi,
   trying to get this to work with pgsql, but it refuses to do anything...

      the table is called catalog. The field is called language and is a
   varchar(3) field.
      81 of the records have the letter 'E' in the language field. i want to
   put 'NoD' in the rest.

     UPDATE catalog
	SET language = 'NoD'
	WHERE NOT language = 'E';

   nor does

     UPDATE catalog
	SET language = 'NoD'
	WHERE language = 'NULL';    ........ or NULL and so on.

   I can change the 81 letter 'E's to anything I like, but can not UPDATE the
   blank fields..

   can anyone tell me what I am missing here please?

   Thanks
   Bob


   ---  http://4qir.quantum-radio.net.au - Where Only The Dedicated Survive!
   4QIR Quantum Radio. Bringing you the original sounds of AFVN, with some of
   the
   original DJ's - back on air - and supporting not only the original Vets, in
   comprehensive AFVN Archives, but putting together segments for the fighting
   men and
   women of todays services all around the world. World Music, for people of
   the world.







view thread (5+ messages)  latest in thread

Message-ID: <199905191308.HAA29068@earlj.nesusa.com>
Permalink:  ../199905191308.HAA29068@earlj.nesusa.com/
Also on:    postgresql.org/message-id/199905191308.HAA29068@earlj.nesusa.com

 · 

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: jearl@box100.com, robert@chalmers.com.au
  Subject: Re: [SQL] Why wont this update work?
  In-Reply-To: <199905191308.HAA29068@earlj.nesusa.com>
  References: <008d01bea1b2$fc0fd820$1a6001cb@chalmers.com.au> <199905191308.HAA29068@earlj.nesusa.com>

* 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