Search Postgresql Archives

Re: to_hex leading zeroes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Mar 15, 2009 at 6:47 AM, Pedro Doria Meunier
<pdoria@xxxxxxxxxxxxxx> wrote:
> Hi All,
>
> I'm in a bit of a pickle here with the to_hex function not returning leading
> zeroes ...
> For instance if I:
> SELECT to_hex(10);
>
> it returns 'a' not '0a' .

Have you looked at lpad()?

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux