L
love2001
Unregistered / Unconfirmed
GUEST, unregistred user!
<%out.print(k);
String name=request.getParameter("name");
out.print(name);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbcdbc:xu","xu","xx");
Statement stmt=conn.createStatement();
String sql="select * from main";
ResultSet rs=stmt.executeQuery(sql);
rs.last();
out.print(rs.getRow());
out.print("xxx");
while(rs.next())
{
out.print(rs.getString("que_body"));
out.println("<br><p>");
out.print(rs.getInt(1));
}
%>
*******************************
rs.last();
为什么不让我用?
String name=request.getParameter("name");
out.print(name);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn=DriverManager.getConnection("jdbcdbc:xu","xu","xx");
Statement stmt=conn.createStatement();
String sql="select * from main";
ResultSet rs=stmt.executeQuery(sql);
rs.last();
out.print(rs.getRow());
out.print("xxx");
while(rs.next())
{
out.print(rs.getString("que_body"));
out.println("<br><p>");
out.print(rs.getInt(1));
}
%>
*******************************
rs.last();
为什么不让我用?