有人可以解释/详述JDBC ODBC FAQs list
中提到的以下限制我尝试使用JDBC / ODBC桥接驱动器打开多个语句,但没有遇到任何问题。
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
//Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection ("jdbc:odbc:MyDSN", "user", "pwd");
Statement stmt1 = conn.createStatement ();
Statement stmt2 = conn.createStatement ();
ResultSet rs1 = stmt1.executeQuery("select COL1 from TAB1");
ResultSet rs2 = stmt2.executeQuery("select COL2 from TAB2");
if (rs1.next() )
//print COL1
if (rs2.next() )
//print COL2
//close all resources
-- DatabaseMetaData --
getDriverName() JDBC-ODBC Bridge (msorcl32.dll)
getJDBCMajorVersion() 2
getDriverVersion() 2.0001 (02.575.1132)