刚接触JSP 请问下面连接CRACLE代码哪里错了?
function button1(){
String url="jdbc:oracle:thin:@localhost:8080:ORCL";
String user="zzj";
String password="hs_jian6";
Connection conn= DriverManager.getConnection(url,user,password);
Statement stmt=conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
Statement stmt=conn.createStatement();
String shuru="insert into ZCXX('1','2','3','4','5','6')";
stmt.executeUpdate(shuru);
alert("注册成功!");
}
------解决方案--------------------
你最好把错误信息贴出来吧