Re: select from a dynamic table name
От | David Stanaway |
---|---|
Тема | Re: select from a dynamic table name |
Дата | |
Msg-id | EF404437-D241-11D5-AF6A-0003930FDAB2@netventures.com.au обсуждение исходный текст |
Ответ на | select from a dynamic table name ("Jason Kwok" <jason@newhonest.com>) |
Список | pgsql-sql |
On Friday, November 2, 2001, at 05:58 PM, Jason Kwok wrote: > Since I could return a rowset (some records) from a function of pgsql or > plpgsql, I saved all the records into a temp file. Then I want to get > the > rowset by another select statement from this temp table with dynamic > name, > could I do something like the folowing : > > select * from a_dynamic_table_name ? How about exec 'select * from '&somefunc(); Where somefunc() returns the name of the temporary table. You'll have to delete it after, so it will be a little more messy. There was talk in the list on functions returning record sets being a feature of 7.2 and there being some patches for 7.1 that permited it. Jan Wieck <JanWieck@Yahoo.com> Wrote on Wed Aug 15, 2001 03:49:03 PM Australia/Sydney > As said, in v7.2 we'll have the ability to return cursors > from functions (and I'm looking actually into the ability of > doing RETURN AND RESUME). So there is at least some sort of > workaround on the horizon. ============================== David Stanaway Personal: david@stanaway.net Work: david@netventures.com.au
В списке pgsql-sql по дате отправления: