Re: How to use like with a list

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to use like with a list
Дата
Msg-id 4EC6BEAE.1040904@hogranch.com
обсуждение исходный текст
Ответ на Re: How to use like with a list  (Richard Broersma <richard.broersma@gmail.com>)
Ответы Re: How to use like with a list  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
On 11/18/11 12:18 PM, Richard Broersma wrote:
> On Fri, Nov 18, 2011 at 12:13 PM, John R Pierce<pierce@hogranch.com>  wrote:
>
>> >  where field ~ '^(jo|mo|do|fo)'
> Don't forget to add the l as the end:
>
> where field ~ '^(jo|mo|do|fo)l'

ah, yeah, that.

and to complete the original requirement...

where field ~ '^(' || replace(?, ',', '|') || ')l'


btw, no need for a .* on the end, since the regex isn't anchored at the
end with a $


--
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast


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

Предыдущее
От: Richard Broersma
Дата:
Сообщение: Re: How to use like with a list
Следующее
От: "Gauthier, Dave"
Дата:
Сообщение: Re: How to use like with a list