Re: [GENERAL] PB with Null string - Mailing list pgsql-general

From Postgres DBA
Subject Re: [GENERAL] PB with Null string
Date
Msg-id Pine.BSF.4.02.9812231137160.19908-100000@nest.bistbn.com
Whole thread Raw
In response to PB with Null string  (darold <darold@neptune.fr>)
List pgsql-general
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
>
>
>


pgsql-general by date:

Previous
From: darold
Date:
Subject: Backup of large object
Next
From: Adriaan Joubert
Date:
Subject: Postgresql on Alpha