Clayton Cottingham aka drfrog writes:
> 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?
You would extend PL/Perl to support querying the database from within a
function.
--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter