摘要: try { //1、加载驱动 Class.forName("oracle.jdbc.OracleDriver"); } catch (ClassNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } //2、创建连接 Connection conn = null; try { conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl", "scott& 阅读全文
posted @ 2013-11-15 17:33 请叫我胖子 阅读(298) 评论(0) 推荐(0) 编辑