how to count records in ASP classic?

前端 未结 9 996
陌清茗
陌清茗 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:15

    You could just change your SQL to count the records:

    strSQLscroll = "SELECT count(*) as Total FROM tblItems where expiration_date > getdate();"
    

    Then you just need to response.write rsscroll("Total")

提交回复
热议问题