02 2012 档案
JDBC 各种连接方式[转载]
摘要:下面罗列了各种数据库使用JDBC连接的方式,可以作为一个手册使用。 1、Oracle8/8i/9i数据库(thin模式)Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();Stringurl="jdbc:oracle:thin:@localhost:1521:orcl";//orcl为数据库的SIDStringuser="test";Stringpassword="test";Connectionconn=DriverManager.getC 阅读全文
posted @ 2012-02-11 00:47 objective 阅读(199) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示