Re: insert column monetary type ver 2

From: Дмитрий Иванов <firstdismay(at)gmail(dot)com>
To: "vincent(dot)veyron(at)libremen(dot)org" <vincent(dot)veyron(at)libremen(dot)org>
Cc: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: insert column monetary type ver 2
Date: 2021-11-22 04:28:39
Message-ID: CAPL5KHoQGwRY4ue-huW5vFU-7bFDPN8yf6ScmyT+4_jJ8EgbDA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you, I'm talking about this solution.

вс, 21 нояб. 2021 г. в 22:46, vincent(dot)veyron(at)libremen(dot)org <
vincent(dot)veyron(at)libremen(dot)org>:

> On Sat, 20 Nov 2021 19:32:54 +0500
> Дмитрий Иванов <firstdismay(at)gmail(dot)com> wrote:
>
> > I saw it. I’m not tied down hard on this type. It's just that it exists
> and
> > I decided to include it in my development. Thanks.
> >
>
>
> Consider storing integers; it's easy and fast, and all you need to do is
> display your numbers divided by 100, using to_char() :
>
> select to_char(100001/100::numeric(10,2), '999G999D99');
> to_char
> -------------
> 1 000,01
>
>
> --
> https://marica.fr
> Logiciel de gestion des contentieux juridiques, des contrats et des
> sinistres d'assurance
> Bien à vous, Vincent Veyron
>
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Дмитрий Иванов 2021-11-22 04:39:23 Re: pg_dump insert column GENERATED
Previous Message Rob Sargent 2021-11-22 03:35:34 Re: insert column monetary type ver 2