- Category:
- Java Develop
- Tags:
-
- File Size:
- 431kb
- Update:
- 2019-05-10
- Downloads:
- 0 Times
- Uploaded by:
- 吴珍珍
Description: Registration is loaded into the JDBC driver.
Registration is loaded into driver driver. That is mandatory class loading: there are three ways to register JDBC drivers.
Method 1: Class.forName (DriverName); among them, the DriverName=Driver package name. Driver class name;
Oracle's DriverName= "oracle.jdbc.driver.OracleDriver".
SQLServer's DriverName= "com.microsoft.jdbc.sqlserver.SQLServerDriver".
Method three: create a driver object directly: new oracle.jdbc.driver.OracleDriver ().
MySql's DriverName= "com.mysql.jdbc.Driver";
Method two: Class.forName (DriverName).NewInstance ();
There are two functions of code completion: first, load the driver into memory; second. Driver Manager is the only Java class in the JDBC specification.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
sqljdbc4-2.0.jar | 466359 | 2013-03-21 |