Re: regexp question

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: regexp question
Дата
Msg-id Pine.LNX.4.44.0302220255390.2067-100000@peter.localdomain
обсуждение исходный текст
Ответ на regexp question  ("Andy Kriger" <akriger@greaterthanone.com>)
Список pgsql-general
Andy Kriger writes:

> select * from table where column ~ '.*\(blah.*\)'
> will return any row with characters-blah-characters
>
> Is there any way I can get just the blah.* portion of the string in my
> result?

Use the substring function.  See the documentation on pattern matching.

--
Peter Eisentraut   peter_e@gmx.net


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: system catalog
Следующее
От: Neil Conway
Дата:
Сообщение: Re: escaping and sql injection