Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Setting int[], String[] in PreparedStatements

Setting int[], String[] in PreparedStatements

From: Laszlo Papp <laszlo.papp_at_epigenomics.com>
Date: Thu, 03 Jul 2003 19:30:38 +0200
Message-ID: <be1p7u$8hm$1@broglie.epigenomics.epi>


Hi,

        I would like to ask if someone here maybe knows a ways how to set an array of integers (or Strings, floats, etc.) with JDBC's PreparedStatement.

Example:

(Oracle)PreparedStatement ps = conn.prepareStatement ("select * from TableX where y IN (?)");
ps.setInts (1, int [] {1,2,3});

Something like that...

Thanks a lot :-)

Chao:

        Laci

-- 
Laszlo Papp

Epigenomics AG       www.epigenomics.com      Kleine Präsidentenstr. 1.
+49-30-24345-0                                      10178 Berlin
Received on Thu Jul 03 2003 - 12:30:38 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US