Return-Path: owner-postman 
Delivery-Date: Thu, 05 May 94 19:53:44 -0700
Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id RAA04351 for postgres-redist; Thu, 5 May 1994 17:20:06 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199405060020.RAA04351@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.149.14]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id RAA04340 for <postgres@postgres.Berkeley.EDU>; Thu, 5 May 1994 17:20:05 -0700
Received: from localhost (localhost [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.4/8.1B) with SMTP id RAA23132; Thu, 5 May 1994 17:19:46 -0700
Message-Id: <199405060019.RAA23132@faerie.CS.Berkeley.EDU>
X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
From: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
To: Michael Reifenberger <root@rz-wb.fh-sw.de>
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Searching for empty String. 
Reply-To: aoki@postgres.Berkeley.EDU (Paul M. Aoki)
In-reply-to: Your message of Fri, 6 May 1994 01:49:34 +0200 (MET DST) 
	     <Pine.3.89.9405060148.A13380-0100000@rz-wb.fh-sw.de> 
Date: Thu, 05 May 94 17:19:46 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Thu, 05 May 94 17:20:06 -0700
Resent-XMts: smtp

Michael Reifenberger <root@rz-wb.fh-sw.de> writes:
> Is the any way to retrieve empty (null) fields?

null is not the same as an empty string.

if your fields contain zero-length strings, the query you gave (where 
foo.bar = "") will retrieve them.

if your fields contain null, you should use the ISNULL and NOTNULL
keywords as documented in the manual.
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki

===============================================================================
    To add/remove yourself from the POSTGRES mailing list: send mail with 
    the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

    If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
    a human will deal with it.  DO NOT post to the "postgres" mailing list.
===============================================================================

