my dog learned polymorphism
The moose likes JDBC and Relational Databases and the fly likes Version of JDBC ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Version of JDBC ?" Watch "Version of JDBC ?" New topic

Version of JDBC ?

Pankaj Batra

Joined: Oct 17, 2000
Posts: 5
Hi !,
I have JDK1.2 installed on my machine. How do I get to know what version of JDBC comes with it.
Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
I believe it's JDBC 2.0. That does not mean that your database driver will support it though. You can find out what version your DB supports.

Driver theDriver = DriverManager.getDriver(yourDatabaseURL);
System.out.println(theDriver.getMajorVersion() + "." + theDriver.getMinorVersion())


So much trouble in the world -- Bob Marley
I agree. Here's the link:
subject: Version of JDBC ?
jQuery in Action, 3rd edition