Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
В списке pgsql-sql по дате отправления:
| От | Emi Lu |
|---|---|
| Тема | Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? |
| Дата | |
| Msg-id | 4E5D0856.105@encs.concordia.ca обсуждение исходный текст |
| Ответ на | Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
|
| Список | pgsql-sql |
Hi Tom,
>>> select * from tablename
>>> where not (col1 ~~* any(array['str1%', 'str2%'... 'strN%']));
>
>> If next version could have "not ilike ('', '')" added into window
>> functions, that's will be great!
>
> Why? And what's this got to do with window functions?
First, where not (col1 ~~* any(array['str1%', 'str2%'... 'strN%'])) will
work for me.
But I feel " ilike ('str1', ... 'strN')" is more intuitive, isn't it?
I have a feeling that windows functions deal with all fancy functions. I
would consider ilike ('str'...) as a non-standard SQL command?
Emi
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера