From: ben sagal <BSagal+pgsql@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Array paramiters
Date: Mon, 4 Jun 2007 16:29:32 +0300
Message-ID: <b72a6e130706040629j4b44ee6g60c15d61b146fc5@mail.gmail.com> (raw)
I would like to query data based on the values in a java int array ( int[]
), using a prepared statement similar to:
"SELECT * FROM items WHERE id IN (?)"
can anybody advise in have to set the prepared in the statement?
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: BSagal+pgsql@gmail.com
Subject: Re: Array paramiters
In-Reply-To: <b72a6e130706040629j4b44ee6g60c15d61b146fc5@mail.gmail.com>
References: <b72a6e130706040629j4b44ee6g60c15d61b146fc5@mail.gmail.com>
* 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