pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Niklas Bergius <niklas@panagora.se>
To: pgsql-sql@postgresql.org
Subject: Arrays, multidimensional ANY (v 8.2)
Date: Tue, 30 Jan 2007 11:40:39 +0100
Message-ID: <45BF20A7.6050206@panagora.se> (raw)

Hello everyone.

Can anyone tell me how I can test for the occurrence of an array in an 
array? Intuitively, this should work:

SELECT ARRAY[1,2,3] = ANY(ARRAY[[1,2,3],[2,3,4]]);

However, this gives me "operator does not exist: integer[] = integer". 
I'm running 8.2.

-- 
Niklas Bergius




Message-ID: <45BF20A7.6050206@panagora.se>
Permalink:  ../45BF20A7.6050206@panagora.se/
Also on:    postgresql.org/message-id/45BF20A7.6050206@panagora.se

 · 

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: niklas@panagora.se
  Subject: Re: Arrays, multidimensional ANY (v 8.2)
  In-Reply-To: <45BF20A7.6050206@panagora.se>

* 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