JDBC连接MySQL:
class.forName("org.git.mm.MySQL.Driver");
String url="jdbc:MySQL://localhost:3306/Dbname?useUnicode=true&characterEncoding=UTF-8";
cn=DriverManager.getConnection(url,Username,Password);
JDBC连接Microsoft SQL Server 2008:
class.forName("con.microsoft.jdbc.sql.sqlserver.SQLServerDriver");
String url="jdbc:microsoft:sqlserver//localhost:1433/databaseName=master";
cn=DriverManager.getConnection(url,Username,Password);
JDBC连接Oracle(Oracle8/8i/9i):
class.forName("oracle.jdbc.driver.OracleDriver");
cn=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:orcl",Username,Password);
JDBC连接ODBC:
class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connetion cn=DriverMannager.getConnection("jdbc:odbc:myDBsource",Username,Password);