Re: function to operate on same fields, different records?
Will Trillich <will@serensoft.com>
From: will trillich <will@serensoft.com>
To: pgsql-general@postgresql.org
Cc: "Eric G. Miller" <egm2@jps.net>
Date: 2001-04-02T06:47:29Z
Lists: pgsql-general
On Sat, Mar 31, 2001 at 11:52:47AM -0800, Eric G. Miller wrote: > I think you still can have a function that uses field names. But then > your field names *have* to be the same. That's the only difference. i've tried create function gpa(OPAQUE) .... and psql tells me it successfully CREATED something, but \df shows no such function. if i do create function gpa(classTable) ... then it probably won't be called via select gpa(studentTable) ... what arg to i specify to allow varying records (with a subset of exactly-the-same-names field subset) to be passed to a function? -- does a brain cell think? will@serensoft.com http://sourceforge.net/projects/newbiedoc -- we need your brain! http://www.dontUthink.com/ -- your brain needs us!