Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Дата
Msg-id 14477.1274969142@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Do not understand "SETOF RECORD" - therefore can not use ODBC-link  (Harrie Rodenbach <marktenveiling@gmail.com>)
Ответы Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link  (Harrie Rodenbach <marktenveiling@gmail.com>)
Список pgsql-sql
Harrie Rodenbach <marktenveiling@gmail.com> writes:
> =  oratest=# select odbclink.query(1, 'SELECT * FROM mytable') as
> result(id int4, t text, d decimal); =  ERROR:  syntax error at or near
> "(" =  LINE 1: ...bclink.query(1, 'SELECT * FROM mytable') as
> result(id int4, ...

You need that to be select * from odbclink.query ...
the "as" business is only allowed in FROM clause.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Question about slow queries...
Следующее
От: "A. Kretschmer"
Дата:
Сообщение: Re: Question about slow queries...