help with a function

From: "Clayton Cottingham aka drfrog" <drfrog(at)smartt(dot)com>
To: PostgreSQL SQL List <pgsql-sql(at)postgresql(dot)org>
Subject: help with a function
Date: 2001-06-02 17:27:30
Message-ID: 200106030037.f530b7c00990@smartt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

consider this function:

CREATE FUNCTION "test" (integer) RETURNS text AS 'return "select * from testt
limit $_[o];";' LANGUAGE 'plperl';

how would i get it to just run the query instead of just return it as text
using plperl?

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Alex Pilosov 2001-06-02 18:14:38 Re: trying to summarize into a new table by time...
Previous Message Larry Rosenman 2001-06-02 15:02:25 Re: trying to summarize into a new table by time...