From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: giuseppe.derossi@email.it
To: pgsql-admin@postgresql.org
Subject: Re: Fw: pop-up multiselection array and where condition
Date: Wed, 29 Aug 2007 09:00:38 -0500
Message-ID: <46D535B5.EE98.0025.0@wicourts.gov> (raw)
In-Reply-To: <6e07a86b040326879dfe5a7bfb1337c5@164.129.1.43>
References: <6e07a86b040326879dfe5a7bfb1337c5@164.129.1.43>
>>> On Wed, Aug 29, 2007 at 1:53 AM, in message
<6e07a86b040326879dfe5a7bfb1337c5@164.129.1.43>, <giuseppe.derossi@email.it>
wrote:
> I've to perform a where condition which includes the output from a
> multiselectio pop-up: ie user can choose one or more item from a pop-up
> munu, let's say (item1,item3,item10), then I want to send this set of
> values
> as an array or table via php to a query that should have as where condition
> some like that:
>
> select * from table1 where field1 is in (array{item1,item3,item10})
Have you tried?:
select * from table1 where field1 in (item1,item3,item10)
-Kevin
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-admin@postgresql.org
Cc: Kevin.Grittner@wicourts.gov, giuseppe.derossi@email.it
Subject: Re: Fw: pop-up multiselection array and where condition
In-Reply-To: <46D535B5.EE98.0025.0@wicourts.gov>
* 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