Re: Convert number to string

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: Melvin Davidson <melvin6925(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, Hengky Liwandouw <hengkyliwandouw(at)gmail(dot)com>
Subject: Re: Convert number to string
Date: 2015-09-24 13:48:22
Message-ID: CA+bJJbyioOUH80sa_HbdhyOR_+iVt1p4yMmYU=7pLM5iWoey0Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

HI Melvin:

On Thu, Sep 24, 2015 at 2:51 PM, Melvin Davidson <melvin6925(at)gmail(dot)com>
wrote:

> Postgresql has a translate function:
>

​Did you read the ( quoted at the bottom of the reply you sent ) message
you were replying to? It contained a working sample using exactly this
translate.​ ;->

>
> You would then need a little further processing to determine the tens,
> hundreds, etc.
>
> I'll leave that to you to work out, but additional functions of
> strpos(string, substring)
> substr(string, from [, count])
> length(string)
>

​Do not forget replace, shorter, easier.

Francisco Olarte.​

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vik Fearing 2015-09-24 13:53:21 Re: epoch and timezone changed bevior
Previous Message Willy-Bas Loos 2015-09-24 13:42:47 epoch and timezone changed bevior