简体   繁体   中英

Using a JDBC Type 3 driver with Java 1.6

I've read in several places that if you are using Java 1.6 then you should use type 4 JDBC drivers. Does that mean that you should not use type 3 drivers?

它可能只是意味着如果可以的话,如果您使用的是Java 1.6,那么您最好也可以利用JDBC 4提供的额外功能集...

Type 4 drivers are generally much preferred, for reasons of simplicity. No native code, and no middleware.

However, other driver types are still perfectly valid, they're just more effort to set up. If you need to use them, then don't be afraid to do so.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM