From: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re: Changing point for commas and commas for point
Date: Sun, 21 Jan 2007 19:56:51 +0100
Message-ID: <20070121185651.GA2808@KanotixBox> (raw)
In-Reply-To: <55c095e90701211041t40c9bb5br91c94ad1d9b37a7c@mail.gmail.com>
References: <55c095e90701211041t40c9bb5br91c94ad1d9b37a7c@mail.gmail.com>
Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com> schrieb:
> Hi list,
>
> Here in my country (Brazil) we have the decimal simbol as ' , ' (commas) and
> thousand separator as ' . ' (point)
>
> Here my sql uses: to_char(sum(My_column), '99990D00')
>
> Is there any way to make this happens ?
I think, you can use the 'G' as a group separator for this:
test=*# select to_char(12345.67, '999G990D00');
to_char
-------------
12.345,67
(1 row)
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknow)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@spamfence.net
Subject: Re: Changing point for commas and commas for point
In-Reply-To: <20070121185651.GA2808@KanotixBox>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox