Re: searching for characters via the hexidecimal value - Mailing list pgsql-general

From Jasen Betts
Subject Re: searching for characters via the hexidecimal value
Date
Msg-id ihvgn8$9q0$1@reversiblemaps.ath.cx
Whole thread Raw
In response to searching for characters via the hexidecimal value  (Geoffrey Myers <lists@serioustechnology.com>)
List 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 by date:

Previous
From: Jasen Betts
Date:
Subject: Re: How to get TimeZone name?
Next
From: Jasen Betts
Date:
Subject: Re: Separating the ro directory of the DB engine itself from the rw data areas . . .