ASP 쿼리문중 오류가 발생할 경우
익명
2021.05.29 02:00
3,750
0
본문
On Error Resume Next
strQry = "SELECT * FROM Table WHERE noinx='" & tmpNumberIDX & "'"
Set numberChk = oAdo.Execute(strQry)
'Response.Write strQry & "<br>"
If Err.Number <> 0 Then
Err.Clear
Response.write("<script>alert('쿼리실패');</script>")
Response.End
else
Response.write("<script>alert('쿼리성공 [" & Err.Number & "]');</script>")
response.end
end if
댓글목록 0