当前位置:编程学习 > asp >>

asp 中处理异常

on error resume next
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from t_student where id=0",my_conn,1,3
rs.addnew
rs("studentID")="98106"
rs("studentName")="gzp"
rs("studentClass")="2"
rs.update
if err.Number=0 then
response.Write("ok")
else
response.Write("sorry")
end if

补充:asp教程,高级应用
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,