在开发中遇到一个问题,我要写一个查询数据库的通用程序,这样会涉及很多不同的数据库,有的数据库很老了,而且要判断该数据库是否支持jdbc2.0,怎样写程序实现了,望大虾们指教!

解决方案 »

  1.   

    不用怕只要数据库支持ODBC他就支持JDBC看看在ODBC数据源中有没有相应数据库的ODBC驱动程序一般 的数据库都不得是支持ODBC的.
      

  2.   

    I'm not sure if this is a valid question. JDBC 2.0 is implemented by a database' JDBC driver. It's not a feature of a database itself. Your Java program either use or does not use JDBC 2.0 features but this is decided when you write your program, not at runtime. I have noticed on this forum that a lot of people use JDBC-ODBC bridge. You should try to avoid that if a native JDBC driver exists. The bridge is the least efficient.
      

  3.   

    只要能 找到 jdbc驱动就可以呀