| От | Tom Lane |
|---|---|
| Тема | Re: Question with combining ANY with ilike |
| Дата | |
| Msg-id | 3871.1229087524@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Question with combining ANY with ilike (Rusty Conover <rconover@infogears.com>) |
| Ответы |
Re: Question with combining ANY with ilike
|
| Список | pgsql-general |
Rusty Conover <rconover@infogears.com> writes:
> 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.
Create a reverse-LIKE operator and underlying one-line SQL function.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера