Re: Query related - Mailing list pgsql-admin

From Julius Tuskenis
Subject Re: Query related
Date
Msg-id 49BA10D3.9070200@nsoft.lt
Whole thread Raw
In response to Re: Query related  (Ashish Karalkar <ashishka@synechron.com>)
List pgsql-admin
Hello
> postgres=# create table name(fn text,ln text);
fn and ln could be nulls, so instead of
> postgres=# select fn||' '||ln as name from name;
SELECT COALESCE(fn,'')||' '||COALESCE(ln,'') from name should be used.
This is because NULL||TEXT = NULL


--
Julius Tuskenis
Programavimo skyriaus vadovas
UAB nSoft
mob. +37068233050


pgsql-admin by date:

Previous
From: "suresh gupta"
Date:
Subject: Re: Query related
Next
From: Yann Collavoli
Date:
Subject: Re: Problem database access