Hibernate SQL方言 (hibernate.dialect) 汇总
String user="myuser";
String password="mypassword";
Connection conn=DriverManager.getConnection(url,user,password);?
8、access数据库直连用ODBC的
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver") ;
String url="jdbc:odbc:Driver={MicroSoft Access Driver(*.mdb)};DBQ="+application.getRealPath("/Data/ReportDemo.mdb");
Connection conn = DriverManager.getConnection(url,"","");
Statement stmtNew=conn.createStatement() ;