orcl

Class.forName("orcle.jdbc.driver.OracleDriver");

		Connection conn=DriverManager.getConnection("jdbc.oracle:thin:@localhost:1521:orcl","scott","tiger");

		Statement stmt=conn.createStatement();
ResultSet rs=stmt.executeQuery("select * from emp");
while(rs.next()){ System.out.println(rs.getString(1)+rs.getString(2));
}
rs.close();
stmt.close();
conn.close();
上一篇:Zabbix 3.0 安装笔记


下一篇:mac 下 python 虚拟环境的安装和配置