pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
to_chat(bigint)
2+ messages / 2 participants
[nested] [flat]

* to_chat(bigint)
@ 2007-02-02 18:11 Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
  2007-02-02 18:15 ` Re: to_chat(bigint) Bricklen Anderson <banderson@presinet.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Ezequias Rodrigues da Rocha @ 2007-02-02 18:11 UTC (permalink / raw)
  To: pgsql-sql

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.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                                  Atenciosamente (Sincerely)
                        Ezequias Rodrigues da Rocha
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
A pior das democracias ainda é melhor do que a melhor das ditaduras
The worst of democracies is still better than the better of dictatorships
http://ezequiasrocha.blogspot.com/

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: to_chat(bigint)
  2007-02-02 18:11 to_chat(bigint) Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
@ 2007-02-02 18:15 ` Bricklen Anderson <banderson@presinet.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Bricklen Anderson @ 2007-02-02 18:15 UTC (permalink / raw)
  To: Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>; 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');



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-02-02 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-02-02 18:11 to_chat(bigint) Ezequias Rodrigues da Rocha <ezequias.rocha@gmail.com>
2007-02-02 18:15 ` Bricklen Anderson <banderson@presinet.com>

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