Re: searching for characters via the hexidecimal value

From: Jasen Betts <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: searching for characters via the hexidecimal value
Date: 2011-01-28 22:41:44
Message-ID: ihvgn8$9q0$1@reversiblemaps.ath.cx
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 2011-01-24, Geoffrey Myers <lists(at)serioustechnology(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jasen Betts 2011-01-28 22:49:07 Re: Separating the ro directory of the DB engine itself from the rw data areas . . .
Previous Message Jasen Betts 2011-01-28 22:01:02 Re: How to get TimeZone name?