Re: Arrays and LIKE

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Arrays and LIKE
Дата
Msg-id h5jm23$6t2$1@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Arrays and LIKE  (David <david@vanlaatum.id.au>)
Список pgsql-general
On 2009-08-08, David <david@vanlaatum.id.au> wrote:
> Done a bit of hunting and can't seem to find an answer as to if this sort of thing is possible:
>
> SELECT * FROM mail WHERE recipients ILIKE 'david%';
>
> Where recipients is a VARCHAR(128)[]
>
> The above doesn't work but thats the sort of thing I want to do...
> If this is possible and can use an index as well that would be wonderful...

hmm tricky: you can't use any(recipients) ilike 'david%'




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

Предыдущее
От: sweta@opspl.com
Дата:
Сообщение: duplicate key violates unique constraint
Следующее
От: Jasen Betts
Дата:
Сообщение: 'a' = any( $${'a','x'} )