asp中,Execute是怎么使用的

asp中,Execute是怎么使用的,第1张

执行一个不需要返回数据集的sql语句时用execute

如:conn.execute "delete from table where id=2"

当然它也可以返回一个数据集

如:

set rs=conn.execute "select * from table"

但是很少它返回数据集.

set conn = server.createobject("adodb.connection")

conn.open "yourdsnname","username","password"

sql="insert into class(xingming,mima) values('伟伟','123456')"

conn.Execute(sql)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/sjk/6780128.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-03-28
下一篇 2023-03-28

发表评论

登录后才能评论

评论列表(0条)

保存