谁能帮我纠正一下这条insert into语句
my3b 2003-08-30 07:57:17 <%@ page contentType="text/html;charset=gb2312"%>
<html>
<head>
<title>使用jsp插入记录</title>
</head>
<body>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="database" scope="page" class="note.OPDB"/>
<%
ResultSet rs=database.executeUpdate("insert into aaaa(username,password,email)
values('"11111"','"22222"','"22@sina.com"')");
out.println(\"记录插入完毕!\");
rs.close();
catch(SQLException ex) {
out.println(\"数据库连接失败!\");
}
%>
</body>
</html>
上面的代码是插入记录的代码,运行时提示ResultSet rs=database.executeUpdate("insert into aaaa(username,password,email)
values('"11111"','"22222"','"22@sina.com"')");这条语句有错误,但我看来看去看不出哪里写金错了,大家帮我看一下到底是哪里出错了呢?谢谢大家了。另外希望能在回帖前在本机中测试一下,看能否通过,请理解我的这一小小要求。