手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp在线执行sql语句的函数
asp在线执行sql语句的函数
摘要:复制代码代码如下:functiongfv(str)gfv=request.form(str)endfunctionsubexecutesql...

复制代码 代码如下:

functiongfv(str)

gfv=request.form(str)

endfunction

subexecutesql

dimcontent:content=gfv("content")

onerrorresumenext

conn.begintrans

conn.execute(content)

iferr.number<>0then

err.clear

conn.rollback

conn.close:setconn=nothing

callalertbox("抱歉!sql语句输入错误!",2)

else

conn.committrans

conn.close:setconn=nothing

callalertbox("恭喜!sql语句执行完毕!",2)

endif

endsub

【asp在线执行sql语句的函数】相关文章:

asp打包类

asp的一个日期格式化函数

ASP处理查询超时的解决函数

一段在asp中加密与解密对应的函数

收集asp的常用函数

ASP常用的函数

asp 随机读取N条记录sql语句

asp中对ip进行过滤限制函数

asp 常用的字符串处理函数

asp 在线调查系统

精品推荐
分类导航