1, Oracle8 / 8i / 9i database ("Oracle.jdbc.driver.Driver (" Oracle.jdbc.Driver.Oracledriver). NewInstance (); String Url = "JDBC: Oracle: Thin: @localhost: 1521: ORCL";
2, SQL Server 7.0 / 2000 Database Class.Forname ("com.microsoft.jdbc.sqlser.sqlserverdriver). NewInstance (); string url =" JDBC: Microsoft: SQLServer: // localhost: 1433; DatabaseName = PUBS " ;
3, DB2 database class.Forname ("com.ibm.db2.jdbc.app.db2driver") .newinstance (); string url = "jdbc: db2: // localhost: 5000 / sample";
4, Informix Database Class.Forname ("com.informix.jdbc.ifxdriver). NewInstance (); string url =" JDBC: Informix-Sqli: //123.45.67.89: 1533 / testdb: InformixServer = myserver;
5, Sybase database class.forname ("com.sybase.jdbc.sybdriver). Newinstance (); string url =" JDBC: Sybase: TDS: Localhost: 5007 / TSDATA "
6, MySQL database Class.forName ( "org.gjt.mm.mysql.Driver") newInstance (); String url =. "Jdbc: mysql: // localhost / softforumuser = soft & password = soft1234 & useUnicode = true & characterEncoding = 8859_1"
7, postgreSQL database class.Forname ("org.postgreSql.driver). NewInstance (); string url =" jdbc: postgreSQL: // localhost / suff "