ASP的问题(recordset)

来源:百度知道 编辑:UC知道 时间:2024/05/17 22:58:27
strwhere="where username='"&session("username")&"'and trim(userpassword)='"&stroldpassword&"'"
strsql="select * from xs"&strwhere
strchangesql="update xs set userpassword='"&strnewpassword&"'"&strwhere
set rs=server.createobject("adodb.recordset")
rs.open strsql,dbcn,1,3
其中的数字1,3具体是什么用的,先谢谢各位了

第一个 1是CursorType的参数
0向前指针
1代表的是键盘指针,在记录集中可以向前或向后移动,当某一用户修改后其它用户都可以立即显示。
2动态指针
3静态指针 (详细的说明去查一下就知道了)
第二个 3是lockTyep的参数
1只读
2只能同时被一个用户修改,修改时锁定,修改完毕释放
3可以同时被多个用户修改
4数据可以修改但不锁定其它用户