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

Поиск
Список
Период
Сортировка
От Emi Lu
Тема Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Дата
Msg-id 4E5D0656.8090709@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?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
On 08/30/2011 11:24 AM, Tom Lane wrote:
> Emi Lu<emilu@encs.concordia.ca>  writes:
>> Does psql provide something like the following query command?
>
>> select * from tablename
>> where col1 not ilike ('str1%', 'str2%'... 'strN%')
>
> If you remember the operator name equivalent to ILIKE (~~*)
> you can do
>
> select * from tablename
> where not (col1 ~~* any(array['str1%', 'str2%'... 'strN%']));

Thank you Tom!

If next version could have "not ilike ('', '')" added into window 
functions, that's will be great!

Emi


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

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