X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 98F1FD9342 for ; Thu, 17 Nov 2005 04:54:39 -0400 (AST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04698-07 for ; Thu, 17 Nov 2005 08:54:40 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from matrix.gatewaynet.com (host2.dynacom.ondsl.gr [62.103.35.210]) by svr1.postgresql.org (Postfix) with ESMTP id 506A7D6853 for ; Thu, 17 Nov 2005 04:54:35 -0400 (AST) Received: from matrix.gatewaynet.com (localhost.localdomain [127.0.0.1]) by matrix.gatewaynet.com (8.12.8/8.12.8) with ESMTP id jAH9pXKc007919; Thu, 17 Nov 2005 11:51:33 +0200 Received: from localhost (achill@localhost) by matrix.gatewaynet.com (8.12.8/8.12.8/Submit) with ESMTP id jAH9pVxJ007915; Thu, 17 Nov 2005 11:51:33 +0200 Date: Thu, 17 Nov 2005 11:51:31 +0200 (EET) From: Achilleus Mantzios To: Emil Kaffeshop cc: pgsql-sql@postgresql.org Subject: Re: Arrya variable as argument to IN expression In-Reply-To: <20051117082851.65703.qmail@web32704.mail.mud.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-7 Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200511/123 X-Sequence-Number: 23374 O Emil Kaffeshop έγραψε στις Nov 17, 2005 : > Hello I am trying the following: > a INTEGER[] := ''{10,15,20}''; > b INTEGER := 15; > flag BOOLEAN := FALSE; > > SELECT b IN (a) INTO flag; !!! does not work contrib/intarray and SELECT intset(b) ~ a::int[] INTO flag; are your friends. > > Is it legal to expect the array to be interpret as > list of integers which IN expression takes ? > > Best Regards > Emil kafegiiski > > > > > __________________________________ > Yahoo! FareChase: Search multiple travel sites in one click. > http://farechase.yahoo.com > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend > -- -Achilleus