Home  >  Article  >  Database  >  asp中rs.BookMark的使用介绍_MySQL

asp中rs.BookMark的使用介绍_MySQL

WBOY
WBOYOriginal
2016-06-01 13:07:12801browse

如 t=rs.BookMark 记录当前的标记找了台服务器将磁力链接爬虫架设起来http://www.51bt.cc(51搜索)大家可以看下。
rs.BookMark=t 把游标移动到记录时的位置
例子:
 


dim d
sql="select * from cs1"
set rs=server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1
while not rs.eof
  if cInt(rs("id"))=10 then
    d=rs.Bookmark
  end if
  response.write(rs("id")&"-"&rs.bookMark&"
")
  rs.MoveNext
wend
rs.Bookmark=d
response.write(rs("id")&"-
")
while not rs.eof
  if cInt(rs("id"))=10 then
    d=rs.Bookmark
  end if
  response.write(rs("id")&"-"&rs.bookMark&"
")
  rs.MoveNext
wend
%>当你按照这个例子自己做一遍运行的时候你就会明白了!如果还不明白(那就别写程序了...)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn