void function and view select

Поиск
Список
Период
Сортировка
От Philipp Kraus
Тема void function and view select
Дата
Msg-id 0AF95F26-7F53-4AF0-88AC-3ACFC6929E3B@tu-clausthal.de
обсуждение исходный текст
Ответы Re: void function and view select  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-general
Hello,

I have got a complex query with a dynamic column result e.g.:

select builddata('_foo‘);
select * from _foo;

The first is a plsql function which creates a temporary table, but the function returns void.
The second call returns all the data from this table. But the columns of the temporary table are
not strict fixed, so I cannot return a table by the function. 
So my question is, how can I build with this two lines a view, so that I can run "select * from myFooView“ or
a function with a dynamic return set of columns e.g. „select myFoo()“?

Thanks

Phil

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: psycopg2.DataError: invalid input syntax for integer: ""
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Is it possible to get username information while writingtrigger?