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

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Дата
Msg-id 4E5E2F08.7010007@encs.concordia.ca
обсуждение исходный текст
Ответ на Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?  (Emre Hasegeli <hasegeli@tart.com.tr>)
Ответы Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-sql
On 08/31/2011 03:16 AM, Emre Hasegeli wrote:
> 2011/8/30 Emi Lu<emilu@encs.concordia.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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Jasen Betts
Дата:
Сообщение: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Следующее
От: lxnf98mm@comcast.net
Дата:
Сообщение: ERROR: cannot subscript type text because it is not an array