Equivalent of PHP "hex2bin()"

Поиск
Список
Период
Сортировка
От Stephen Cook
Тема Equivalent of PHP "hex2bin()"
Дата
Msg-id 54948CAB.5080307@gmail.com
обсуждение исходный текст
Ответы Re: Equivalent of PHP "hex2bin()"
Список pgsql-general
PHP has functions "bin2hex()" and "hex2bin()", and I have to deal with the results in PostgreSQL.

These functions "Returns an ASCII string containing the hexadecimal representation of str. The conversion is done byte-wise with the high-nibble first" and "Decodes a hexadecimally encoded binary string". Basically you can take binary data and each byte becomes two hexadecimal characters.

Is there anything in PostgreSQL that can do this already? I'm sure I can work it out but it can't hurt to ask first.

-- Stephen

В списке pgsql-general по дате отправления:

Предыдущее
От: Arup Rakshit
Дата:
Сообщение: Re: Uninstall Postgresql in openSUSE 13.1
Следующее
От: John McKown
Дата:
Сообщение: Re: Equivalent of PHP "hex2bin()"