JDBC连接Oracle

JDBC编程步骤:
JDBC连接oracle的步骤:
1.Load the Driver
    <1.Class.forName()|Class.forname().newinstance()|new DirverName()
    <2.实例化时自动向DirverManager注册,不需显式调用DriverManger.registerDriver()方法

2.Connect to the DataBase
    <1.DriverManager.getConnection()

3.Execute the SQL
    <1.Connection CreateStatement()
    <2.Statement.excuteQuery()
    <3.Statement.executeUpdate()
4.Retrieve the result data <1.循环取得结果while(rs.next())
5.Show the result data <1.将数据库中的各种类型转换为JAVA中的类型(getXXX)方法
6.Close <1.close the resultset/close the statement/close the connection
原文地址:https://www.cnblogs.com/mosquito-woo/p/3634507.html