Re: to_chat(bigint)

From: Bricklen Anderson <banderson(at)presinet(dot)com>
To: Ezequias Rodrigues da Rocha <ezequias(dot)rocha(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: to_chat(bigint)
Date: 2007-02-02 18:15:31
Message-ID: 45C37FC3.1010400@presinet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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');

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andrew Sullivan 2007-02-02 18:18:08 Re: Nocount and scope_identity()
Previous Message Ezequias Rodrigues da Rocha 2007-02-02 18:11:22 to_chat(bigint)