asp在线执行sql语句的函数
代码如下:
function gfv(str) gfv = request.form(str) end function sub executesql dim content:content = gfv("content") on error resume next conn.begintrans conn.execute(content) if err.number <> 0 then err.clear conn.rollback conn.close:set conn = nothing call alertbox("抱歉!sql语句输入错误!",2) else conn.committrans conn.close:set conn = nothing call alertbox("恭喜!sql语句执行完毕!",2) end if end sub
相关推荐
stulen 2020-08-15
fengzhiwu 2020-08-01
liusarazhang 2020-06-28
xiaobaif 2020-06-14
lemonzhangyan 2020-06-13
Crazyshark 2020-06-13
weikaixxxxxx 2020-06-13
有梦就能实现 2020-06-10
shengnanonly 2020-06-03
oraclemch 2020-05-30
poplpsure 2020-05-27
fujuan000 2020-04-30
zuihaobushi 2020-04-30
luckymaoyy 2020-04-29
xiaoseyihe 2020-04-28
JackLang 2020-04-25
菇星獨行 2020-04-20
jyj00 2020-03-26