pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Emil Kaffeshop <emildg@yahoo.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Arrya variable as argument to IN expression
Date: Thu, 17 Nov 2005 09:23:37 -0500
Message-ID: <25702.1132237417@sss.pgh.pa.us> (raw)
In-Reply-To: <20051117082851.65703.qmail@web32704.mail.mud.yahoo.com>
References: <20051117082851.65703.qmail@web32704.mail.mud.yahoo.com>

Emil Kaffeshop <emildg@yahoo.com> writes:
> SELECT b IN (a) INTO flag; !!! does not work

> Is it legal to expect the array to be interpret as
> list of integers which IN expression takes ?

No.  But try "b = any (a)".

			regards, tom lane



view thread (4+ messages)

Message-ID: <25702.1132237417@sss.pgh.pa.us>
Permalink:  ../25702.1132237417@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25702.1132237417@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, emildg@yahoo.com
  Subject: Re: Arrya variable as argument to IN expression
  In-Reply-To: <25702.1132237417@sss.pgh.pa.us>

* 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