From: Postgres DBA <postgres@nest.bistbn.com>
To: darold <darold@neptune.fr>
Cc: pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] PB with Null string
Date: Wed, 23 Dec 1998 11:37:21 +0200 (IST)
Message-ID: <Pine.BSF.4.02.9812231137160.19908-100000@nest.bistbn.com> (raw)
In-Reply-To: <3680B749.3B30CF42@neptune.fr>
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
>
>
>
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: postgres@nest.bistbn.com, darold@neptune.fr, pgsql-general@postgreSQL.org
Subject: Re: [GENERAL] PB with Null string
In-Reply-To: <Pine.BSF.4.02.9812231137160.19908-100000@nest.bistbn.com>
References: <3680B749.3B30CF42@neptune.fr> <Pine.BSF.4.02.9812231137160.19908-100000@nest.bistbn.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