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();
相关文章
- 07-15orcl regexp_like 的用法
- 07-15orcl数据库自定义函数--金额小写转大写
- 07-15Orcl分页查询的语法示例
- 07-15orcl数据库的导入 导出
- 07-15ORCL_UNINSTALL_WIN10
- 07-15orcl 中upper()和lower()和initcap()的用法
- 07-15orcl 之 导入和导出(2)
- 07-15ORA-15005: name "orcl" is already used by an existing alias
- 07-15oracle 监听启动问题 Instance "orcl", status UNKNOWN, has 1 handler(s) for this service...
- 07-15ORA-01146: cannot start online backup - file 1 is already in backup ORA-01110: data file 1: 'C:\ORACLE\ORADATA\ORCL8\SYSTEM01.DBF'