?? del.jsp
字號:
<%@ page contentType="text/html; charset=GBK" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<title>
del
</title>
</head>
<%! Connection conn; %>
<%! Statement stmt; %>
<%! String xuehao;%>
<body bgcolor="#ffffff">
<%
xuehao=request.getParameter("xuehao").trim();
try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn=DriverManager.getConnection("jdbc:odbc:test");
stmt=conn.createStatement();
stmt.executeUpdate("delete from class where xuehao='"+xuehao+"'");
stmt.close();
conn.close();
}catch(Exception e){
out.print(e);
}
%>
正在刪除,請稍后..............<meta http-equiv="refresh" content="2;url=index.jsp">
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -