Question with combining ANY with ilike

Поиск
Список
Период
Сортировка
От Rusty Conover
Тема Question with combining ANY with ilike
Дата
Msg-id B7C0BF05-CEDB-420F-A6F1-A996DA6B8BA3@infogears.com
обсуждение исходный текст
Ответы Re: Question with combining ANY with ilike  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Hi PostgreSQL,

I'd like to specify a pattern then apply that pattern to match each
element of an array:

rconover=# select 'foobar%' ~~ ANY (ARRAY['bar', 'cat', 'foobar:asdf']);
  ?column?
----------
  f
(1 row)

I'd like the the pattern would be evaluated against all of the array
elements, but the order of parameters for the ~~ operator when
combined with the ANY command is backwards to what I need.

Do you how I can make it work so that I could write a pattern and
match it against the array elements using the ANY command?

Thanks,

Rusty
--
Rusty Conover
rconover@infogears.com
InfoGears Inc / GearBuyer.com / FootwearBuyer.com
http://www.infogears.com
http://www.gearbuyer.com
http://www.footwearbuyer.com








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

Предыдущее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Tool to converter plsql in pgplsql
Следующее
От: "Irwan Hadi"
Дата:
Сообщение: Binary Postgresql Package