手机
当前位置:查字典教程网 >编程开发 >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语句的函数】相关文章:

用正则表达式写的HTML分离函数

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

asp调用二级分类代码

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

asp 中常用的文件处理函数

asp最常用的分页函数

asp中的Rnd 函数

asp的一个日期格式化函数

asp 常用函数用法

asp 查询数据代码

精品推荐
分类导航