Re: concatenation operator || with "null" array

From: "stroncococcus" <stroncococcus(at)gmx(dot)de>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: concatenation operator || with "null" array
Date: 2006-12-07 00:44:35
Message-ID: 1165452275.301000.227600@16g2000cwy.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


stroncococcus wrote:
> Ok, solved the problem with COALESCE.

Hm, I not really solved it ... just solved it for text columns, but not
for integer arrays.
I can use this for text
COALESCE(textcol, '') || 'str '
but how do I use this for integers?
Is there a way to create an empty integer array and do such a thing ...
COALESCE(intarraycol, *empty int array*) || 5

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leonard Soetedjo 2006-12-07 00:44:59 Re: how to install 8.2 with yum?
Previous Message stroncococcus 2006-12-07 00:24:46 Re: concatenation operator || with "null" array