X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 07C965280B for ; Mon, 13 Jun 2005 07:09:15 -0300 (ADT) 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 81449-01 for ; Mon, 13 Jun 2005 10:09:11 +0000 (GMT) Received: from tnet.dp.ua (mail.tnet.dp.ua [217.196.171.1]) by svr1.postgresql.org (Postfix) with ESMTP id 368305293D for ; Mon, 13 Jun 2005 07:09:04 -0300 (ADT) Received: from [217.196.171.125] (HELO [10.20.20.3]) by tnet.dp.ua (CommuniGate Pro SMTP 4.2.7) with ESMTP id 1322731 for pgsql-jdbc@postgresql.org; Mon, 13 Jun 2005 13:09:04 +0300 Message-ID: <42AD8567.10004@tnet.dp.ua> Date: Mon, 13 Jun 2005 13:08:55 +0000 From: Sergey Pariev User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: ru-ru, ru MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: in(...) clause and PreparedStatement Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/57 X-Sequence-Number: 13019 Hi all. It may be stupid question, but is there way to use PreparedStatement with queries like SELECT * FROM mytable WHERE t_id IN (1,2,3) ? I've googled but haven't found nothing explicitly said on this topic. I've tried the following PreparedStatement st = conn.prepareStatement("SELECT * FROM mytable WHERE t_id IN ( ? )"); st.setObject(1,"1,2,3"); and get error complaining on type mismatch. Thanks in advance, Sergey.