stored procedure / Function

Поиск
Список
Период
Сортировка
От Alain Roger
Тема stored procedure / Function
Дата
Msg-id 75645bbb0611061123h61d3a6d6n8e0be7ca151a662c@mail.gmail.com
обсуждение исходный текст
Ответы Re: stored procedure / Function
Список pgsql-general
Hi,

How to retrieve the IN parameter of a function for later use ?

i tried this :

CREATE OR REPLACE FUNCTION "public"."SP_U_001" ("TypeOfArticle" varchar) RETURNS SETOF "public"."active_articles" AS
$body$
DECLARE
  TypeArt VARCHAR := TypeOfArticle;
    rec RECORD;
    res active_articles;
/**************************************/
BEGIN

  SELECT articletypes.articletype_id INTO tpart FROM articletypes   
    WHERE articletypes.articletype_type = TypeArt;
....

but it seems that      TypeArt VARCHAR := TypeOfArticle;     does not work....

Can you help me ?
thx.
AL.

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

Предыдущее
От: "Andrus"
Дата:
Сообщение: How to force strong passwords
Следующее
От: Paul Ramsey
Дата:
Сообщение: Re: PostGIS Binary RPM for Red Hat Linux