##1.Load the Driver
注册 Class.forName("oracle.jdbc.driver.OracleDirver");
或 new oracle.jdbc.driver.OracleDirver();
##2.Connect to the DataBase
DriverManager.getConnection();
##3.Execute the SQL
Connection.createStatement(); Statement.executeQuery(); Statement.executeUpdate();
##4.Restrieve the result data
循环取得结果while(rs.next()){}
##5.Show the result data
将数据库中的各种类型转换为java中的类型(getXXX)方法
##6.Close
close the ResultSet close the Statement close the Connection