时间:2021-07-01 10:21:17 帮助过:20人阅读
Class.forName(“oracle.jdbc.driver.OracleDriver”);
Connection conn=DriverManager.getConnection( url , username , password );
Statement stmt=conn.createStatement();
String str=”select * from [table]”;
ResultSet rs=stmt.executeQuery(str);
While(rs.next())
{
……………………
}
rs.close();
stmt.close();
conn.close();
用java访问Oracle数据库、取得记录并输出到界面
标签:rman test tab close ring 访问 get stat sel