Re: select all matches for a regular expression ?

Поиск
Список
Период
Сортировка
От Peter Childs
Тема Re: select all matches for a regular expression ?
Дата
Msg-id a2de01dd0702230614rc647383q50ca083d6541a68b@mail.gmail.com
обсуждение исходный текст
Ответ на select all matches for a regular expression ?  ("Anton Melser" <melser.anton@gmail.com>)
Ответы Re: select all matches for a regular expression ?  ("Anton Melser" <melser.anton@gmail.com>)
Список pgsql-general
On 23/02/07, Anton Melser <melser.anton@gmail.com> wrote:
> Hi,
> I need to be able to get all the matches for a particular regexp from
> a text field that I need to use in another query in a function. Is
> this possible with plpgsql? Do I have to install the perl language?
> Cheers
> Anton
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>

yes. use "like" or "~"

see
http://www.postgresql.org/docs/8.2/static/functions-matching.html

There is no need to use perl.

Peter.

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

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: ODBCng and OpenOffice 2.1
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Warning "TupleDesc reference leak"