Re: Easy way to detect server version ?
Posted by: Mark Matthews
Date: November 18, 2004 08:42AM

The JDBC spec allows you to get the major/minor version of the server, via DatabaseMetadata.getDatabaseMajorVersion() and DatabaseMetadata.getDatabaseMinorVersion().

If you want anything more detailed than that, you'll have to use 'SHOW ....'.


(Hint, anytime you want some particular information about the versions/capabilities/tables/columns etc. from the database you're connected to, more than likely DatabaseMetadata can get you that information).

-Mark

Options: ReplyQuote


Subject
Written By
Posted
November 17, 2004 09:16PM
Re: Easy way to detect server version ?
November 18, 2004 08:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.