最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp向数据库插入数据的方法rs
时间:2026-09-20 10:10:02 编辑:袖梨 来源:一聚教程网
用adodb.recordset实现数据库的插入方法 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