我正在编写此代码,但在运行时捕获了一个异常并说
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
问题是什么?
String database="jdbc:odbc:Driver={Microsoft Access Driver(*.accdb)};DBQ=C:/Users/Amitav/Desktop/Database1.accdb;";
Connection con=DriverManager.getConnection(database,"","");