Re: concatenate 2 numeric columns..

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: concatenate 2 numeric columns..
Date: 2001-01-25 00:49:06
Message-ID: 20010124184906.B11151@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I saw some similar things when using to_char on columns will null
values. I used a case statement to check for nulls in 7.0.3. When
I switched to using 7.1beta3, the problem was fixed.

On Thu, Jan 25, 2001 at 01:42:44AM +0530,
Anand Raman <araman(at)india-today(dot)com> wrote:
> hi guys
> I wish to concatenate 2 columns of numeric type.. How can it be done..
>
>
> Earlier i tried using the to_char function but it seems to be crashing
> the backend. Any other option will be greatly appreciated..
>
>
> select to_char(length,'9999D99') || to_char(breadth,'9999D99') from exhibit_distributions
>
> This query seems to be crashing the backend when executed over the
> table.. However when constrained using a appropriate where clause it
> works..
>
> Any other approach??.
>
> Thanx
> Anand
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Wall 2001-01-25 01:24:20 Re: Re: 7.1 expected features list?
Previous Message Ryan Mahoney 2001-01-25 00:18:54 Replication