大概解释一下下面的代码什么意思kstypedel.asp

来源:百度知道 编辑:UC知道 时间:2024/05/26 06:43:47
<!-- #include file="cookies.asp" -->
<!-- #include file="conn.asp" -->

<%

dele_id=request.querystring("id")
str="select * from kstype where id="&dele_id
set rs=conn.execute(str)
sql="delete from kstype where id="&dele_id&""
conn.execute(sql)
conn.close
set conn=nothing
response.redirect "ok.asp?type=seditsave"
%>

<!-- #include file="cookies.asp" -->
<!-- #include file="conn.asp" -->
上面两行,调用文件
<%

dele_id=request.querystring("id")
'获取从地址传值的参数ID的值
str="select * from kstype where id="&dele_id
'书写SQL语句,意思是将表KSTYPE中ID的值等于从地址传值的参数ID的值的所有记录删除
set rs=conn.execute(str)
'执行SQL语句
sql="delete from kstype where id="&dele_id&""
同上
conn.execute(sql)
同上
conn.close 关闭CONN链接
set conn=nothing 将CONN清空
response.redirect "ok.asp?type=seditsave"
返回指定的路径
%>