pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kelly <quadratini@sni.ph>
To: pgsql-sql@postgresql.org
Subject: selecting from integer[]
Date: Sat, 29 Jun 2002 19:48:57 +0800
Message-ID: <3D1D9EA9.3090604@sni.ph> (raw)


select * from pg_user where usesysid=(select grolist[1] from pg_group 
where groname='mygroup');
select * from pg_user where usesysid=(select grolist[2] from pg_group 
where groname='mygroup');
select * from pg_user where usesysid=(select grolist[3] from pg_group 
where groname='mygroup');

Can those three queries be merged to one query? (and still gives me 
those three rows)
Or do I have to explicitly say grolist[1], grolist[2], etc....

Thanks in advance :)






view thread (3+ messages)  latest in thread

Message-ID: <3D1D9EA9.3090604@sni.ph>
Permalink:  ../3D1D9EA9.3090604@sni.ph/
Also on:    postgresql.org/message-id/3D1D9EA9.3090604@sni.ph

 · 

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: quadratini@sni.ph
  Subject: Re: selecting from integer[]
  In-Reply-To: <3D1D9EA9.3090604@sni.ph>

* 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