-->
-->
There are many friends who are looking forJDBC DriverOr how to useDriverOften ask questions,
On this side, I'll simply sort out the more representativeDriverHow to use.
microsoft SQL Server Series (6.5, 7.x and Watts) and Sybase 10
jdbc name:jtds url: http:// Jtds.sourceforge.net/
version: "!--? xml:namespace prefix = st1 ns =" ur N:schemas-microsoft-com:office:smarttags "/--> 0.5.1
download URL: http://sourceforge.net/project/showfiles.php?group_id=33291
syntax : "/ span>
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: 3.0.8 -stable
download url:jdbc-stable.html "TARGET=_BLANK> http://www.mysql.com/downloads/ Api-jdbc-stable.html
syntax :
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: 3.0.8 -stable
download url:jdbc/content.html "TARGET=_BLANK> http://otn.oracle.com/software/tech/java/ Sqlj_jdbc/content.html
syntax :
Class.forName ("Oracle.") JDBC.driver.Oracledriver ");
Connection con = drivermanager.getconnection ("JDBC:oracle:thin: @host:p ort:databse", "User", "password");
Sybase
Driver: jConnect 4.5/5.5 (JDBC 2.0 please use 5.5)
Syntax :
Class.forName (" Com.sybase.JDBC2.JDBC.Sybdriver "). newinstance ();
Drivermanager.getconnection ("Jdbc:sybase:tds:ip:2638?" Servicename= "+ database name account ", " password ";
postgresql
jdbc name:postgresql jdbc url: jdbc.postgresql.org/"Target=_blank> http://jdbc.postgresql.org/
version: 7.3.3 build 110
download URL:JDBC . postgresql.org/download.html "TARGET=_BLANK> http://JDBC.postgresql.org/download.html
syntax :
class.forname (" Org.postgresql.driver ");
Connection con=drivermanager.getconnection ("Jdbc:postgresql://host:port/database", "User", "password");
ibm AS400 host in use jdbc syntax
has a loaded v4r4 the above version of the client Access express can be c:program Filesibmclient accessjt400lib
find driver file Jt400.zip , and change the extension to Jt400.jar
syntax Span lang= "en-us" >
Java.sql.driverManager.registerdriver (New Com.ibm.as400.access.AS400JDBCdriver ());
Class.forName ("Com.ibm.as400.access.AS400JDBCConnection");
con = drivermanager.getconnection ("JDBC:AS400://IP", "User", "password");
each family JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and the use of the grammar of the home JDBC Driver the current version and usage syntax
-->
-->