Thursday, December 16, 2010

Postgresql dec to hex

test=# select to_hex(12648430) as favorite_drink, to_hex(3405697037) as person_type;
 favorite_drink | person_type
----------------+-------------
 c0ffee         | cafed00d
(1 row)

No comments:

Post a Comment