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!