asp 從第幾條開始讀取數據 asp跳過前幾條讀取數據。
set rs=server.CreateObject( "adodb.recordset" )sql= "select top 15 * from news order by id desc "rs.open sql,conn,1,1if rs.eof then response.write "本類暫無新聞" elsei=0do while not rs.eofi=i+1if i >=6 then '從第幾條開始讀取,就寫幾%><li> <a href= "/xxnews/<%=rs(" SMT_id ")%>.html" target= "_blank" title= "<%=rs(" SMT_title ")%>" ><%=rs( "SMT_title" )%></A></li> <%end ifrs.movenextloopend ifrs.close%>