Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?

Поиск
Список
Период
Сортировка
От 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?  (Emre Hasegeli <hasegeli@tart.com.tr>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Следующее
От: Emre Hasegeli
Дата:
Сообщение: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?