jsp 连接access数据库 org.apache.jasper.JasperException: An exception occurred processing JSP page
发布网友
发布时间:2022-10-10 08:59
我来回答
共1个回答
热心网友
时间:2023-10-06 03:42
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbc:odbc:School");
Statement stat=conn.createStatement();
String sql="insert into T_STUDENT(STUNO,STUNAME,STUSEX) values ('4','老虎','男')";
int i=stat.executeUpdate(sql);
out.println("cheng gong+ "+i+" hang");
stat.close();
conn.close();