JDBC Driver写法!
2008-01-05 19:59:40 来源:WEB开发网Microsoft SQL Server series (6.5, 7.x and 2000) and Sybase 10
JDBC Name: jTDS
URL: http://jtds.sourceforge.net/
Version:
Download URL: http://sourceforge.net/PRoject/showfiles.php?group_id=33291
语法:
Class.forName("net.sourceforge.jtds.jdbc.Driver ");
Connection con = DriverManager.getConnection("jdbc:jtds:sqlserver://host:port/database","user","passWord");
or
Connection con = DriverManager.getConnection("jdbc:jtds:sybase://host:port/database","user","password");
MySQL
JDBC Name: Connector/J 3.0
URL: http://www.mysql.com/
Version:
Download URL: http://www.mysql.com/downloads/api-jdbc-stable.Html
语法:
Class.forName("com.mysql.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://host:port/database","user","password");
Oracle
JDBC Name: Connector/J 3.0
URL: http://otn.oracle.com/
Version:
Download URL: http://otn.oracle.com/software/tech/java/sqlj_jdbc/content.html
赞助商链接