摘要: JDBC编程步骤:JDBC连接oracle的步骤:1.Load the Driver <1.Class.forName()|Class.forname().newinstance()|new DirverName() <2.实例化时自动向DirverManager注册,不需显式调用Dri... 阅读全文
posted @ 2014-03-30 20:03 mosquito_real 阅读(179) 评论(0) 推荐(0) 编辑
摘要: JDBC连接MySQL:import java.sql.*;public class TestMysqlConnection { public static void main(String args[]) { Connection conn = null; Sta... 阅读全文
posted @ 2014-03-30 12:24 mosquito_real 阅读(209) 评论(0) 推荐(0) 编辑