asp向数据库插入数据的方法rs
asp向数据库插入数据的方法rs
发布时间:2016-12-29 来源:查字典编辑
摘要:SetobjRs=Server.CreateObject("Adodb.Recordset")mysql="selectsnamefrom[...

SetobjRs=Server.CreateObject("Adodb.Recordset")

mysql="selectsnamefrom[users]wheresname='"&sname&"'"

objRs.openmysql,objConn,1,3

IfobjRs.BofOrobjRs.EofThen

objRs.addnew

objRs("sname")=sname

objRs.update

Else

callsalert("该用户已经存在,不可以注册")

EndIf

推荐文章
猜你喜欢
附近的人在看
推荐阅读
拓展阅读
相关阅读
网友关注
最新ASP教程学习
热门ASP教程学习
编程开发子分类