Search Postgresql Archives

Re: bytea and character encoding when inserting escaped literals

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

 



Lee Feigenbaum <lee@xxxxxxxxxxxxxxx> writes:
> Would be nice if the bytea parser understood hex representation too, but 
> beggars can't be choosers :)

decode() might help you:

select decode('1200AB', 'hex');
    decode    
--------------
 \022\000\253
(1 row)

			regards, tom lane


[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