手机
当前位置:查字典教程网 >编程开发 >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 随机读取N条记录sql语句

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

ASP 写的自动生成SELECT 表单的函数

asp 常用函数用法

几个常用的ASP函数

sql语句的一些集合

asp 中常用的文件处理函数

asp获取用户真实IP地址的方法

精品推荐
分类导航