时间:2021-07-01 10:21:17 帮助过:39人阅读
1、各种数据库对应的jar包
数据库类型 | 对应的Jar文件 |
Oracle 8i | classes12.zip 或 ojdbc14.jar |
Sybase | jconn2.jar 或 jconn3.jar |
Mysql | mysql-connector-java-3.1.1-alpha-bin.jar 或 mysql-connector-java-5.0.2-beta-bin.jar |
SQLServer 2000 | msbase.jar、msutil.jar、mssqlserver.jar |
SQLServer 2005 | sqljdbc.jar |
SQLServer 7.0 | jtds-1.2.2.jar |
Informix | ifxjdbc.jar |
DB2 | db2jcc.jar、db2jcc_license_cu.jar |
2、各种数据库对应的驱动类名和URL格式
数据库 | 驱动类名 | URL格 |
Oracle | oracle.jdbc.driver.OracleDriver | jdbc:oracle:thin:@hostip:1521:dbname |
Sybase | com.sybase.jdbc2.jdbc.SybDriver | jdbc:sybase:Tds:hostip:4100/dbname |
Mysql | com.mysql.jdbc.Driver | jdbc:mysql://hostip:3306/dbname?useUnicode=true&characterEncoding=GB |
SQLServer 2000 | com.microsoft.jdbc.sqlserver.SQLServerDriver | jdbc:microsoft:sqlserver://hostip:1433;Databas |
SQLServer 2005 | com.microsoft.sqlserver.jdbc.SQLServerDriver | jdbc:sqlserver://hostip:1433;DatabaseName=d |
SQLServer 7.0 | net.sourceforge.jtds.jdbc.Driver | jdbc:jtds:sqlserver://hostip:1433/dbname |
DB2 | com.ibm.db2.jcc.DB2Driver | jdbc:db2://hostip:50000/dbname |
Informix | com.informix.jdbc.IfxDriver | jdbc:informix-sqli://hostip:port/dbname:informixserver=<dbse |
以上就是 【MySQL 03】各种数据库对应的jar包、驱动类名和URL格式的内容,更多相关内容请关注PHP中文网(www.gxlcms.com)!