Re: Polymorphic arguments and composite types

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Polymorphic arguments and composite types
Дата
Msg-id 15763.1191595970@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Polymorphic arguments and composite types  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: Polymorphic arguments and composite types  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> ...which is fine on just one table, but I want to join...

> postgres=# select * from c where col1 = any (select col2 from c);
> ERROR:  operator does not exist: integer = integer[]

That isn't a join.  Are you looking for something like

select * from c, c as c2 where c.col1 = any (c2.col2)
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: First steps with 8.3 and autovacuum launcher
Следующее
От: Tom Lane
Дата:
Сообщение: Re: default_text_search_config