Search Postgresql Archives

Re: a column definition list is required for functions returning "record"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Alexander Farber <alexander.farber@xxxxxxxxx> writes:
> in 9.5.3 I have defined the following custom function:

> CREATE OR REPLACE FUNCTION words_select_games(IN in_uid integer)
>         RETURNS SETOF RECORD AS

> I have also unsuccessfully tried
>         RETURNS SETOF words_games, words_moves AS

> How would you recommend to fix my declaration problem please?

I think you are looking for the RETURNS TABLE syntax.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux