pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Atul <atul@imcindia.net>
To: pgsql-sql@postgresql.org
Subject: Re: Stored Procedure Problem
Date: Thu, 12 Dec 2002 20:13:22 +0530
Message-ID: <LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net> (raw)

Hi,
      How to return multiple columns through stored procedure.

Consider EX.

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;
 '
 LANGUAGE 'plpgsql';

But This Gives Error(For Multiple column , not for single column)
Please Let me know.

Thanks

Atul…

view thread (7+ messages)  latest in thread

Message-ID: <LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net>
Permalink:  ../LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net/
Also on:    postgresql.org/message-id/LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: atul@imcindia.net
  Subject: Re: Stored Procedure Problem
  In-Reply-To: <LHEOILFLDANINFJAGPEOIEFNCAAA.atul@imcindia.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox