Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support? - Mailing list pgsql-sql

From Emi Lu
Subject Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Date
Msg-id 4E5D0856.105@encs.concordia.ca
Whole thread Raw
In response to Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?  (Emre Hasegeli <hasegeli@tart.com.tr>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Next
From: Emre Hasegeli
Date:
Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?