pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Don Park <donp+postgresql@klickitat.st>
To: pgsql-sql@postgresql.org
Subject: numeric fields and null
Date: Thu, 22 May 2003 13:17:57 -0700 (PDT)
Message-ID: <Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st> (raw)

Im trying to pull out all records in a table where field
'postaladdressid=null' but I cant figure this out.

\d users
....
id               | numeric
postaladdressid  | numeric
....

adhoc=# update users set postaladdressid=null where id=50;
UPDATE 1

adhoc=# select id,postaladdressid from users where postaladdressid=null;
 id | postaladdressid
----+-----------------
(0 rows)

Why did it not select record 50?

just for your info, this is what record 50 looks like.
adhoc=# select id,postaladdressid from users where id=50;
 id | postaladdressid
----+-----------------
 50 |
(1 row)


Don
-- 
** irc: irc.freenode.net nick: don-o channels: #wireless, #java
** As we enjoy great advantages from inventions of others, we should be
** glad of an opportunity to serve others by any invention of ours; and
** this we should do freely and generously.  --Benjamin Franklin





view thread (8+ messages)  latest in thread

Message-ID: <Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st>
Permalink:  ../Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st/
Also on:    postgresql.org/message-id/Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st

 · 

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: donp+postgresql@klickitat.st
  Subject: Re: numeric fields and null
  In-Reply-To: <Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st>
  References: <Pine.LNX.4.51.0305221317360.17969@amidala.klickitat.st>

* 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