Re: help with a function

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: help with a function
Дата
Msg-id Pine.LNX.4.30.0106061750290.757-100000@peter.localdomain
обсуждение исходный текст
Ответ на help with a function  ("Clayton Cottingham aka drfrog" <drfrog@smartt.com>)
Список pgsql-sql
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



В списке pgsql-sql по дате отправления:

Предыдущее
От: Judd Maltin
Дата:
Сообщение: Re: "Day" from 8am to 3am
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Tutorial : using foreign keys, retrictions etc