X-Original-To: pgsql-sql@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 7B26D925BEC for ; Thu, 22 May 2003 17:57:01 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 58233-07 for ; Thu, 22 May 2003 17:56:29 -0400 (EDT) Received: from klickitat.st (klickitat.st [63.105.27.237]) by developer.postgresql.org (Postfix) with ESMTP id 73B9B925C0A for ; Thu, 22 May 2003 16:17:07 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by klickitat.st (Postfix) with ESMTP id 6EDC956B0B for ; Thu, 22 May 2003 13:17:57 -0700 (PDT) Date: Thu, 22 May 2003 13:17:57 -0700 (PDT) From: Don Park X-X-Sender: donp@amidala.klickitat.st To: pgsql-sql@postgresql.org Subject: numeric fields and null Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/421 X-Sequence-Number: 13586 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