How do i return a dataset from a stored procedure

From: teknokrat(at)yahoo(dot)com (teknokrat)
To: pgsql-sql(at)postgresql(dot)org
Subject: How do i return a dataset from a stored procedure
Date: 2002-07-05 08:32:33
Message-ID: 1cbae208.0207050032.4e052f07@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I can't figure out how to return a group of rows from a function
written in plpgsql (or plsql for that matter). The only way i have
seen it done is with a setof table return value in sql. But since the
query was a single select anyway i don't see the point of this. Is
there a way of creating a temporary table in a procedure and using it
as the output?

thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message juerg.rietmann 2002-07-05 09:02:59 sql statement how to do ?
Previous Message Bruce Momjian 2002-07-05 02:39:30 Re: Possible Bug regarding temp tables (sql or psql?)