Re: cannot create function that uses variable table name

From: chester c young <chestercyoung(at)yahoo(dot)com>
To: Matthew Nuzum <cobalt(at)bearfruit(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: cannot create function that uses variable table name
Date: 2003-01-17 04:42:07
Message-ID: 20030117044207.10247.qmail@web12702.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

--- Matthew Nuzum <cobalt(at)bearfruit(dot)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 doesnt work.
> It always gives me a parse error at $1. Heres 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2003-01-17 04:43:49 Re: cannot create function that uses variable table name
Previous Message Matthew Nuzum 2003-01-17 03:32:37 cannot create function that uses variable table name