您现在的位置是:网站首页> 编程资料编程资料

asp向数据库插入数据的方法rs_ASP基础_

2023-05-25 115人已围观

简介 asp向数据库插入数据的方法rs_ASP基础_

Set objRs = Server.CreateObject("Adodb.Recordset")
mysql = "select sname from [users] where sname = '"&sname&"'"
objRs.open mysql,objConn,1,3

If objRs.Bof Or objRs.Eof Then
 objRs.addnew
 objRs("sname") = sname
 objRs.update
Else
 call salert("该用户已经存在,不可以注册")
End If

-六神源码网