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