Re: cannot create function that uses variable table name - Mailing list pgsql-sql

From chester c young
Subject Re: cannot create function that uses variable table name
Date
Msg-id 20030117044207.10247.qmail@web12702.mail.yahoo.com
Whole thread Raw
In response to cannot create function that uses variable table name  ("Matthew Nuzum" <cobalt@bearfruit.org>)
List pgsql-sql
--- Matthew Nuzum <cobalt@bearfruit.org> wrote:
> I thought I would be crafty and devise a function that would always
> return the highest numbered item in the table.  But it doesn�t work. 
> It always gives me a parse error at $1.  Here�s the function:

build the query as a string and execute it.

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


pgsql-sql by date:

Previous
From: "Matthew Nuzum"
Date:
Subject: cannot create function that uses variable table name
Next
From: Stephan Szabo
Date:
Subject: Re: cannot create function that uses variable table name