Received: from nest.bistbn.com (postgres@nest.bistbn.com [209.88.174.52]) by hub.org (8.9.1/8.9.1) with ESMTP id EAA28950 for ; Wed, 23 Dec 1998 04:37:30 -0500 (EST) (envelope-from postgres@nest.bistbn.com) Received: from localhost (postgres@localhost) by nest.bistbn.com (8.9.1/8.9.1) with SMTP id LAA19934; Wed, 23 Dec 1998 11:37:22 +0200 (IST) Date: Wed, 23 Dec 1998 11:37:21 +0200 (IST) From: Postgres DBA To: darold cc: pgsql-general@postgreSQL.org Subject: Re: [GENERAL] PB with Null string In-Reply-To: <3680B749.3B30CF42@neptune.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Instead you should use "IS NOT NULL" or "IS NULL": SELECT * FROM t_table WHERE s_string IS NULL; Aleksey On Wed, 23 Dec 1998, darold wrote: > Hi, > > > I have tried this query to check if a field is empty: > > SELECT * FROM t_table WHERE s_string=''; > > where s_string is declared as text. But this doesn't work, why? Is > there's an > other way to do that ? I have also tried with NULL but I think it is not > included > in the 6.3.2... > > Thank, > > Gilles > > >