Re: pl/pgsql string combining

From: Bino Oetomo <bino(at)indoakses-online(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: pl/pgsql string combining
Date: 2009-12-16 09:33:19
Message-ID: 4B28A95F.3050108@indoakses-online.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dear Mr. Stehule

Thankyou for your super prompt (came to my mailbox less then 2 minutes
since my post) enlightment.

I'll try it

Sincerely
-bino-

Pavel Stehule wrote:
> Hello
>
> NULL and any is NULL. So you have to use "coalesce" function.
>
> like
>
> NEW.prefix = ctrcode || coalesce(NEW.code, '');
>
> Regards
> Pavel Stehule
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Christensen 2009-12-16 09:34:16 Re: Need some advice on a difficult query
Previous Message Pavel Stehule 2009-12-16 09:29:20 Re: pl/pgsql string combining