From: | Michael Kleiser <mkl(at)webde-ag(dot)de> |
---|---|
To: | mike <mike(at)redtux1(dot)uklinux(dot)net> |
Cc: | Troels Arvin <troels(at)arvin(dot)dk>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: When is a blank not a null or '' |
Date: | 2005-02-02 16:11:12 |
Message-ID: | 4200FBA0.3040301@webde-ag.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Maybe other whitspace or non-printable-character.
Try:
SELECT first_name, '[' || work_email || ']', |ASCII(|work_email)|| FROM tb_contacts WHERE
tb_contacts.work_email <>'';
mike wrote:
>On Wed, 2005-02-02 at 11:31 +0100, Troels Arvin wrote:
>
>
>>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).
>>
>>
>>
>
>nope
>
>SELECT work_email FROM tb_contacts WHERE tb_contacts.work_email ILIKE
>'% %';
> work_email
>------------
>(0 rows)
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2005-02-02 16:14:49 | Re: PostgreSQL on cluster |
Previous Message | Rick Schumeyer | 2005-02-02 16:07:57 | basic pg lock question |