Re: Question - Mailing list pgsql-general

From Gaetano Mendola
Subject Re: Question
Date
Msg-id 3F8C382C.3010303@bigfoot.com
Whole thread Raw
In response to Question  (Robert Partyka <bobson@wdg.pl>)
List pgsql-general
Robert Partyka wrote:

> Hi,
>
> I have question:
>
> why such condition:
> foofield not like '%bar%'
>
> where foofield is varchar
>
> returns false (or rather even ignore row) on record where foofield is null
> but
> returns true on records where foofield is '' (empty string)

SQL specifications.

Empty string and NULL are two different thinks.

Regards
Gaetano Mendola


pgsql-general by date:

Previous
From: Network Administrator
Date:
Subject: Re: previous & next buttons
Next
From: Peter Eisentraut
Date:
Subject: Re: converting varchar date strings to date