Re: RE in WHERE

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: RE in WHERE
Дата
Msg-id 20021010193058.15843.qmail@web20808.mail.yahoo.com
обсуждение исходный текст
Ответ на RE in WHERE  (Patrick Nelson <pnelson@neatech.com>)
Список pgsql-general
--- Patrick Nelson <pnelson@neatech.com> wrote:
> SELECT * FROM secure WHERE ~ '^12\.';
>
> displays
>
>     host
> -----------------
>  12.28.18.10
>  12.41.17.174
>  128.121.247.126
> ...
>
> Escaping the dot should only show the 12. entries
> right?  What is the proper
> RE for this?
>
Your statement goes through two rounds of parsing,
with escape characters being stripped off each time,
so your literal '.' is being interpreted as a
metacharacter.  Try doubling your backslash escape.

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

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

Предыдущее
От: Jean-Luc Lachance
Дата:
Сообщение: Re: RE in WHERE
Следующее
От: Joe Maldonado
Дата:
Сообщение: Re: RE in WHERE