rs2.open("select * from student where StuId=" & DeleId, conn, 1, 3)这个语句的意思是?
conn,1,3在这里是作什么的完整代码如下:<H3>学生分数信息浏览</H3><%Action=Request.QueryString("Action")DeleId=...
conn, 1, 3在这里是作什么的 完整代码如下:
<H3>学生分数信息浏览</H3>
<%
Action = Request.QueryString("Action")
DeleId = Request.QueryString("id")
Select Case Action
Case "Dele_Score"
conn.execute("Delete From student Where StuId=" & DeleId)
Response.Redirect("List_Stu.asp")
Case "Save_Score"
set rs2 = Server.CreateObject("adodb.recordset")
rs2.open("select * from student where StuId=" & DeleId, conn, 1, 3)
rs2("StuName") = Request("StuName")
rs2("Chinese") = Request("Chinese")
rs2("Maths") = Request("Maths")
rs2("English") = Request("English")
rs2("SumScore") = rs2("Chinese") + rs2("Maths") + rs2("English")
rs2.update()
rs2.close()
set rs2 = Nothing
Response.Redirect("List_Stu.aspx")
Case ""
%> 展开
<H3>学生分数信息浏览</H3>
<%
Action = Request.QueryString("Action")
DeleId = Request.QueryString("id")
Select Case Action
Case "Dele_Score"
conn.execute("Delete From student Where StuId=" & DeleId)
Response.Redirect("List_Stu.asp")
Case "Save_Score"
set rs2 = Server.CreateObject("adodb.recordset")
rs2.open("select * from student where StuId=" & DeleId, conn, 1, 3)
rs2("StuName") = Request("StuName")
rs2("Chinese") = Request("Chinese")
rs2("Maths") = Request("Maths")
rs2("English") = Request("English")
rs2("SumScore") = rs2("Chinese") + rs2("Maths") + rs2("English")
rs2.update()
rs2.close()
set rs2 = Nothing
Response.Redirect("List_Stu.aspx")
Case ""
%> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询