Re: Stored Procedure Problem

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Atul <atul(at)imcindia(dot)net>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Stored Procedure Problem
Date: 2002-12-12 14:51:44
Message-ID: 3DF8A280.1010107@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Atul wrote:

> CREATE FUNCTION b_function() RETURNS varchar AS '
>
> DECLARE
>
> an_integer int4;
>
> an_name varchar;
>
> BEGIN
>
> select into an_integer emp_id,an_name emp_name from employee;
>
> return an_integer,an_name;
>
> END;
>
> '

First: select into an_integer,an_name emp_id,emp_name...
Second: you can't return 2 variables from plpgsql function.

Tomasz Myrta

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Héctor Iturre 2002-12-12 15:08:59 Performance Problems
Previous Message Atul 2002-12-12 14:43:22 Re: Stored Procedure Problem