Re: Query related

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux