Re: tsearch2 headline() query subselect help

Поиск
Список
Период
Сортировка
Искать
От
Jeff Davis
Тема
Re: tsearch2 headline() query subselect help
Дата
Msg-id
1168477985.2411.7.camel@dogma.v10.wvs
Ответ на
Список
Дерево обсуждения
tsearch2 headline() query subselect help "John Smith" <jayzee.smith@gmail.com>
Re: tsearch2 headline() query subselect help Jeff Davis <pgsql@j-davis.com>
Re: tsearch2 headline() query subselect help Jeff Davis <pgsql@j-davis.com>
On Wed, 2007-01-10 at 19:14 -0500, John Smith wrote:
>         guys,
>         how'd i make this query work?
>         select headline(select column_1 from table_1 where to_tsvector
> (column_1) @@ to_tsquery('ftp'),'ftp'::tsquery); 
>         ERROR:  syntax error at or near "select" at character 17
>         

When passing a subselect as an argument to a function, you need to put
it in parenthesis, like so:

select myfunction((select ... from ...),'');

Regards,
	Jeff Davis

В списке pgsql-general по дате отправления
От: Tomas Lanczos
Дата:
От: Radovan Jablonov
Дата:
FAQ