problem with to_char

From: Carsten Grewe <DerReisende(at)schatzis(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: problem with to_char
Date: 2002-01-29 08:43:51
Message-ID: 200201290845.g0T8j9l91001@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi!

I think I have not understood some elementary things of the to_char function
in pgsql7.1.2. I only get back a mask instead of a formatted string.

I tried the following in psql:
SPS=> select to_char(45145, '9.999,99');
to_char
-----------
#.###,##
(1 row)

I also tried a "normal" query in the form:
select col1,col2,to_char(col3, '9.999,99') from test;
with col3 as numeric values. I also only get a mask in the 3rd col.

What am I doing wrongly?

Kind regards,
Carsten Grewe

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dmitry Alyabyev 2002-01-29 08:48:30 Re: password file for crypt authentication fails
Previous Message Gurudutt 2002-01-29 08:27:21 Re: Pg_dump options