Re: When is a blank not a null or ''

From: Troels Arvin <troels(at)arvin(dot)dk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: When is a blank not a null or ''
Date: 2005-02-02 10:31:01
Message-ID: pan.2005.02.02.10.31.01.33278@arvin.dk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 02 Feb 2005 09:59:30 +0000, mike wrote:

> SELECT first_name,work_email FROM tb_contacts WHERE
> tb_contacts.work_email <>'';
>
> However I get loads of blank email addresses coming up
>
> anyone any ideas

An idea: You have " "-values in your work_email column, i.e. work_email
values consisting of space(s).

--
Greetings from Troels Arvin, Copenhagen, Denmark

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message WireSpot 2005-02-02 10:33:05 query time
Previous Message Alban Hertroys 2005-02-02 10:26:57 Re: When is a blank not a null or ''