CAST(integer_field AS character) truncates trailing zeros - Mailing list pgsql-general

I am trying to cast an int to a character. The int is the number 1000 it
gets cast down to "1" and not "1000". How do I cast from int to
character without loosing the trailing zeros?

--
Thanks,

Warren Bell


pgsql-general by date:

Previous
From: David R Robison
Date:
Subject: Re: Doing an LDAP lookup from a SQL SELECT
Next
From: "Douglas McNaught"
Date:
Subject: Re: CAST(integer_field AS character) truncates trailing zeros