如何判断conn.Execute成功 或失败?
2008-05-30 10:37:45 来源:WEB开发网核心提示:代码:<%dim sqlsql="select * from table"on error resume nextconn.execute(sql)if err.number=0 thenResponse.Write "成功!"elseResponse.Write &quo
代码:
<%
dim sql
sql="select * from table"
on error resume next
conn.execute(sql)
if err.number=0 then
Response.Write "成功!"
else
Response.Write "失败"
end if
%>
更多精彩
赞助商链接