Re: searching for characters via the hexidecimal value

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: searching for characters via the hexidecimal value
Дата
Msg-id ihvgn8$9q0$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на searching for characters via the hexidecimal value  (Geoffrey Myers <lists@serioustechnology.com>)
Список pgsql-general
On 2011-01-24, Geoffrey Myers <lists@serioustechnology.com> wrote:
> Massa, Harald Armin wrote:
>
> This does not work for me, but if I convert the hex value to octal this
> does work:
>
> select comments from fax where comments ~* E'\231';
>

you can do hex like this:

select comments from fax where comments ~* E'\x99';

or if your hex is unicode

 select comments from fax where comments ~* U&'\2122';


http://www.postgresql.org/docs/8.4/static/sql-syntax-lexical.html

--
⚂⚃ 100% natural

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

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: How to get TimeZone name?
Следующее
От: Jasen Betts
Дата:
Сообщение: Re: Separating the ro directory of the DB engine itself from the rw data areas . . .