From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | mike <mike(at)redtux1(dot)uklinux(dot)net> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: When is a blank not a null or '' |
Date: | 2005-02-02 11:58:02 |
Message-ID: | 20050202115757.GB18657@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Try:
SELECT first_name,'['||work_email||']' FROM tb_contacts WHERE
tb_contacts.work_email <>'';
Maybe you have spaces?
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
>
> anyone any ideas
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.
From | Date | Subject | |
---|---|---|---|
Next Message | Alban Hertroys | 2005-02-02 12:43:05 | Re: When is a blank not a null or '' |
Previous Message | Sean Davis | 2005-02-02 11:30:10 | Re: When is a blank not a null or '' |