asp向数据库插入数据的方法rs
摘要: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向数据库插入数据的方法rs】相关文章:
★ 替换数据库内容
上一篇:
ASP变量加变量实现代码
下一篇:
asp上传带显示的代码