hexdecimal constant in postgresql - Mailing list pgsql-novice

From Chris
Subject hexdecimal constant in postgresql
Date
Msg-id 1090844178.5246.85.camel@dell
Whole thread Raw
Responses Re: hexdecimal constant in postgresql  (Chris <list@1006.org>)
List pgsql-novice
hello,

i was wondering how to specify hexadecimal constants in
SQL in a way that postgresql understands.

something like:

select 0xFFFF;   -- this doesn't work;

I've googled for it and i've found it can be done with
encode/decode involving a bytea type - but i'm under
the impression there must be a more straightforward way...

Bye, Chris.



pgsql-novice by date:

Previous
From: Oliver Fromme
Date:
Subject: Re: PyPgSQL help
Next
From: Stephan Szabo
Date:
Subject: Re: help with conversion functions