how to count records in ASP classic?

前端 未结 9 1044
陌清茗
陌清茗 2021-01-14 02:50

I\'m not quite familiar with programming ASP classic. I just need a small code to run on my webpage. How do i count the record of the returned query?

<%
S         


        
9条回答
  •  [愿得一人]
    2021-01-14 03:18

    You can try this

        Dim count
        count = 0
        if strSQLscroll.eof <> true or strSQLscroll.bof <> true then
           while not strSQLscroll.eof
              count = count+1
              strSQLscroll.movenext
           wend
        end if
        response.write(count)
    

提交回复
热议问题