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
猜你喜欢