From: Bricklen Anderson <banderson@presinet.com>
To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: to_chat(bigint)
Date: Fri, 02 Feb 2007 10:15:31 -0800
Message-ID: <45C37FC3.1010400@presinet.com> (raw)
In-Reply-To: <55c095e90702021011t3d0fa1e1vb0c0e56d62b3a1de@mail.gmail.com>
References: <55c095e90702021011t3d0fa1e1vb0c0e56d62b3a1de@mail.gmail.com>
Ezequias Rodrigues da Rocha wrote:
> Hi list,
>
> Now I noticed that it is impossible to convert a bigint field to char
> with the function to_char. Is it correct ?
>
> If not please tell me how to convert a bigint using to_char.
>
Couple ways I can see immedately:
select 123123123123123123123::BIGINT::TEXT;
or
select
to_char(12312312312312312312::BIGINT,'fm9999999999999999999999999999999999');
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: banderson@presinet.com, ezequias.rocha@gmail.com
Subject: Re: to_chat(bigint)
In-Reply-To: <45C37FC3.1010400@presinet.com>
* 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