pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson, DeJuan <djackson@cpsgroup.com>
To: Patrik Kudo <kudo@partitur.se>
To: pgsql-sql@postgreSQL.org
Subject: RE: [SQL] Function returning multiple rows?
Date: Fri, 5 Feb 1999 11:26:25 -0600
Message-ID: <F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail> (raw)

Not currently.

> -----Original Message-----
> From: Patrik Kudo [mailto:kudo@partitur.se]
> Sent: Friday, February 05, 1999 9:54 AM
> To: pgsql-sql@postgreSQL.org
> Subject: [SQL] Function returning multiple rows?
> 
> 
> Hello,
> 
> I've been trying to create a function which returns multiple 
> rows, but I
> can't get it working. I'm I doing something wrong, or is it not
> possible? This is my setup:
> 
> create table groups (userid int4, grp int4);
> 
> CREATE FUNCTION usersingroup(int4) RETURNS int4 AS 'SELECT userid FROM
> groups WHERE grp = $1;' LANGUAGE 'sql';
> 
> 
> When doing a
> 
> SELECT usersingroup(100);
> 
> I only get the first row. Is there any way to get all the rows?
> 
> Regards,
> Patrik Kudo
> kudo@partitur.se
> 



view thread (4+ messages)  latest in thread

Message-ID: <F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail>
Permalink:  ../F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail/
Also on:    postgresql.org/message-id/F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: djackson@cpsgroup.com, kudo@partitur.se
  Subject: Re: [SQL] Function returning multiple rows?
  In-Reply-To: <F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail>
  References: <F10BB1FAF801D111829B0060971D839F64A6AB@cpsmail>

* 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