Java examples for JDBC:Oracle
Inserting a VARRAY Value into an Oracle Table
import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; public class Main { public static void main(String[] args) { Connection connection = null; try {/*from w w w . ja va 2 s . c o m*/ // Create a statement Statement stmt = connection.createStatement(); // Insert a row with an array of two values stmt.execute("INSERT INTO varray_table VALUES(number_varray(123, 234))"); } catch (SQLException e) { } } }