In response to Jonathan Harden :
> I am trying to write a function which takes an argument and uses that argument
> to return a set of rows from a table with the name given (or possibly inferred)
> from the argument.
You have to use EXECUTE. Build a string that contains your select, and
execute that string.
Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header)
In response to
pgsql-novice by date
|Next:||From: Tom Lane||Date: 2009-10-09 14:05:16|
|Subject: Re: Functions which use an argument to decide which table to read |
|Previous:||From: Jonathan Harden||Date: 2009-10-09 11:56:00|
|Subject: Functions which use an argument to decide which table to read|