pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: atul@imcindia.net
Cc: pgsql-sql@postgresql.org
Subject: Re: Stored Procedure Problem
Date: Thu, 12 Dec 2002 14:37:33 +0100
Message-ID: <3DF8911D.DAFAEF09@rodos.fzk.de> (raw)

> CREATE FUNCTION b_function() RETURNS int4 AS '
> DECLARE
>    an_integer int4;
> BEGIN
>    select emp_id from employee;
>    return an_integer;
> END;
> '
> LANGUAGE 'plpgsql';
>
Try
SELECT INTO an_integer emp_id from employee;

Regards, Christoph




view thread (7+ messages)  latest in thread

Message-ID: <3DF8911D.DAFAEF09@rodos.fzk.de>
Permalink:  ../3DF8911D.DAFAEF09@rodos.fzk.de/
Also on:    postgresql.org/message-id/3DF8911D.DAFAEF09@rodos.fzk.de

 · 

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: ch@rodos.fzk.de, atul@imcindia.net
  Subject: Re: Stored Procedure Problem
  In-Reply-To: <3DF8911D.DAFAEF09@rodos.fzk.de>

* 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