select from a dynamic table name

From: "Jason Kwok" <jason(at)newhonest(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: select from a dynamic table name
Date: 2001-11-02 06:58:24
Message-ID: 000e01c1636b$c466b380$0201a8c0@newhonest.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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 ?

If the a_dynamic_table_name could be specified as a function, it would be
great, because inside the function I could insert the needed rows into the
temp file and then return its name for the select statement. Is this
possible?

==
====
Best Regards
Jason Kwok
==============
====

---
Virus Free
Checked by AVG anti-virus system (http://www.grisoft.com)
Version: 6.0.292 / Virus Database: 157 - Release Date: 2001/10/26

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David M. Richter 2001-11-02 08:45:35 Re: View consistency
Previous Message sharmad 2001-11-02 04:05:31 debugging