丛
丛艳全
Unregistered / Unconfirmed
GUEST, unregistred user!
<%@ page contentType="text/html;
charset=gb2312"
language="java"
import="java.sql.*"
errorPage=""
%>
<%@ page import="java.sql.*"%>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;
charset=gb2312">
<META HTTP-EQUIV="refresh"
CONTENT="10"/>
<title>无标题文档</title>
</head>
<body>
<%
Connection con;
ResultSet rs;
Statement stmt;
String sql;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"
con=DriverManager.getConnection("jdbcdbc:login","sa","sa"
stmt=con.createStatement();
sql="select * from edu";
rs=stmt.executeQuery(sql);
%>
<table border="1"
width="100%">
<tr>
<td width="50%"><%=rs.getString("ID"%></td>
<td width="50%"><%=rs.getString("Education"%></td>
</tr>
</table>
</body>
</html>
提示错误信息为:无效游标
charset=gb2312"
language="java"
import="java.sql.*"
errorPage=""
%>
<%@ page import="java.sql.*"%>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html;
charset=gb2312">
<META HTTP-EQUIV="refresh"
CONTENT="10"/>
<title>无标题文档</title>
</head>
<body>
<%
Connection con;
ResultSet rs;
Statement stmt;
String sql;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"
con=DriverManager.getConnection("jdbcdbc:login","sa","sa"
stmt=con.createStatement();
sql="select * from edu";
rs=stmt.executeQuery(sql);
%>
<table border="1"
width="100%">
<tr>
<td width="50%"><%=rs.getString("ID"%></td>
<td width="50%"><%=rs.getString("Education"%></td>
</tr>
</table>
</body>
</html>
提示错误信息为:无效游标