Home  >  Article  >  Database  >  Out of all 4 JDBC driver types, when to use which driver?

Out of all 4 JDBC driver types, when to use which driver?

WBOY
WBOYforward
2023-09-23 23:41:07876browse

在所有 4 种 JDBC 驱动程序类型中,什么时候使用哪种驱动程序?

If you are accessing one type of database, such as Oracle, Sybase, or IBM, the preferred driver type is 4.

Type 3 is the preferred driver if your Java application accesses multiple types of databases simultaneously.

Type 2 drivers are useful in situations where a Type 3 or Type 4 driver is not yet available for the database.

Type 1 drivers are not considered deployment-level drivers and are typically used for development and testing purposes only.

The above is the detailed content of Out of all 4 JDBC driver types, when to use which driver?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete