Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link - Mailing list pgsql-sql

From Tom Lane
Subject Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link
Date
Msg-id 14477.1274969142@sss.pgh.pa.us
Whole thread Raw
In response to Do not understand "SETOF RECORD" - therefore can not use ODBC-link  (Harrie Rodenbach <marktenveiling@gmail.com>)
Responses Re: Do not understand "SETOF RECORD" - therefore can not use ODBC-link  (Harrie Rodenbach <marktenveiling@gmail.com>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Question about slow queries...
Next
From: "A. Kretschmer"
Date:
Subject: Re: Question about slow queries...