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

From: Emi Lu <emilu(at)encs(dot)concordia(dot)ca>
To: Emre Hasegeli <hasegeli(at)tart(dot)com(dot)tr>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Date: 2011-08-31 12:54:32
Message-ID: 4E5E2F08.7010007@encs.concordia.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 08/31/2011 03:16 AM, Emre Hasegeli wrote:
> 2011/8/30 Emi Lu<emilu(at)encs(dot)concordia(dot)ca>:
>
>> 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?
>
> It is not. It is like "where id = (3, 5, 7)".

What I mean is ilike ('%str1%', ... '%strN%')

I just forgot to put %

Emi

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message lxnf98mm 2011-08-31 13:26:57 ERROR: cannot subscript type text because it is not an array
Previous Message Jasen Betts 2011-08-31 10:17:50 Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?