Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 8B47D9FB65B for ; Mon, 4 Jun 2007 10:29:36 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 35578-07 for ; Mon, 4 Jun 2007 10:29:28 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.243]) by postgresql.org (Postfix) with ESMTP id C8B559FB711 for ; Mon, 4 Jun 2007 10:29:33 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c36so318933ana for ; Mon, 04 Jun 2007 06:29:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=nI7jy1VueXmxP/XvODsS82OB6eoTPdkZ9aNnJmuJ6NZMGoemGUFHs2zEFSr97TaEK1WvANKvEOMOQc2Gj9uDKd+E4GR5jeL7CCflmESX7zXq6FIfi1i+iMBi/X6TVOSgagjFjoH5eYk6/4Mu0qSWqfZ/L6GSOe/jQS5zM9i2Q9Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=N/nHI2W6L2+uFNGHZZ4cA0mgUXqRGYEiKN8P3Z3RbvbytPpJAvdE6yQ9ZVNY2cnUpcO6I4Yk9FyvAT/UDPtS5C+7UCyt6HDg49A8qXi5gFAzsYB8SR5WxOHvcmal5SXI+1jhs7myn/MKyf24xRfM74vznhNCLwqY3N4ugQ5BjDc= Received: by 10.100.8.18 with SMTP id 18mr2557734anh.1180963772468; Mon, 04 Jun 2007 06:29:32 -0700 (PDT) Received: by 10.100.110.2 with HTTP; Mon, 4 Jun 2007 06:29:32 -0700 (PDT) Message-ID: Date: Mon, 4 Jun 2007 16:29:32 +0300 From: "ben sagal" To: pgsql-jdbc@postgresql.org Subject: Array paramiters MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2409_30297868.1180963772335" X-Google-Sender-Auth: 6c530d6d8c5fbb55 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50=0.001, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200706/4 X-Sequence-Number: 17066 ------=_Part_2409_30297868.1180963772335 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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? ------=_Part_2409_30297868.1180963772335 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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?
------=_Part_2409_30297868.1180963772335--