用与连接用于odbc的数据库
使用主要是写代码,位置不清楚
例:
//连接数据库
public void connectdb() throws SQLException {
String URL = "Jdbc:Odbc:Fabric";
if(!connected)
{
DriverManager.registerDriver(new sun.jdbc.odbc.JdbcOdbcDriver());
con = DriverManager.getConnection(URL, "sa", "aaa");
stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
connected = true;
}
}