Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 93F929FACFE for ; Sun, 21 Jan 2007 14:54:51 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 28220-05 for ; Sun, 21 Jan 2007 14:54:47 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from 137086.vserver.de (vs137086.vserver.de [62.75.137.86]) by postgresql.org (Postfix) with ESMTP id 358FA9FA66C for ; Sun, 21 Jan 2007 14:54:47 -0400 (AST) Received: from a-kretschmer.de (p54B3C424.dip0.t-ipconnect.de [84.179.196.36]) (authenticated bits=0) by 137086.vserver.de (8.12.8/8.12.8) with ESMTP id l0LIsbtb007427 for ; Sun, 21 Jan 2007 19:54:38 +0100 Received: from kretschmer by a-kretschmer.de with local (Exim 4.61) (envelope-from ) id 1H8hs3-00011O-AF for pgsql-sql@postgresql.org; Sun, 21 Jan 2007 19:56:51 +0100 Date: Sun, 21 Jan 2007 19:56:51 +0100 From: Andreas Kretschmer To: pgsql-sql@postgresql.org Subject: Re: Changing point for commas and commas for point Message-ID: <20070121185651.GA2808@KanotixBox> References: <55c095e90701211041t40c9bb5br91c94ad1d9b37a7c@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <55c095e90701211041t40c9bb5br91c94ad1d9b37a7c@mail.gmail.com> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-GPG-Fingerprint: EE16 3C01 7B9C 10F7 2C8B 3B86 4DB3 D9EE 7F45 84DA X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! X-Lugdd: Gerd Kube X-Info: My name is root. Just root. And I am licensed to kill -9 User-Agent: mutt-ng 1.5.9i (Linux) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/93 X-Sequence-Number: 27245 Ezequias Rodrigues da Rocha 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°