Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String url="jdbc:oracle:thin:@icech:1521:b2bdb";
String user="B2BUSER";
String password="BAISHA";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);自己看看吧。
String url="jdbc:oracle:thin:@icech:1521:b2bdb";
String user="B2BUSER";
String password="BAISHA";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);自己看看吧。
String url="jdbc:oracle:thin:@192.168.0.1:1521:test";
String user="user";
String password="passwd";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);自己看看吧。
out.print(e.getMessage()) ;
不把错误语句贴出来