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

From: Chris Green <chris(at)areti(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: When is a blank not a null or ''
Date: 2005-02-02 11:18:44
Message-ID: 20050202111844.GB29501@areti.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 02, 2005 at 09:59:30AM +0000, mike wrote:
> I have the following query (I have removed all nulls from the field as
> test)
>
> SELECT first_name,work_email FROM tb_contacts WHERE
> tb_contacts.work_email <>'';
>
> However I get loads of blank email addresses coming up
>
Maybe you have some entries in the work_email column set to one or
more spaces.

--
Chris Green (chris(at)areti(dot)co(dot)uk)

"Never ascribe to malice that which can be explained by incompetence."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Kleiser 2005-02-02 11:19:39 Re: When is a blank not a null or ''
Previous Message WireSpot 2005-02-02 10:33:05 query time