欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

asp實(shí)現(xiàn)獲取MSSQL數(shù)據(jù)庫(kù)表指定條件行數(shù)的函數(shù)

 更新時(shí)間:2015年03月10日 17:05:35   投稿:hebedich  
這篇文章主要介紹了asp實(shí)現(xiàn)獲取MSSQL數(shù)據(jù)庫(kù)表指定條件行數(shù)的函數(shù)的的相關(guān)資料,需要的朋友可以參考下

復(fù)制代碼 代碼如下:

'數(shù)據(jù)庫(kù)表行數(shù)函數(shù),這是取表的行數(shù)
Function GetTblRows(TblName)
    '如果TblName表名值為空,則
    if TblName="" Then
       GetTblRows="未知TblName"
    exit Function
    Else
       set rec = server.createobject("adodb.recordset")
       SQL="EXEC sp_spaceused "&TblName
       rec.open sql,conn,1,1
       GetTblRows=Trim(rec("rows"))
       rec.close
       set rec=nothing
    end if
End Function

如何使用?

復(fù)制代碼 代碼如下:

<%=GetTblRows("表格名稱")%>

以上就是本文所述的全部?jī)?nèi)容了,希望大家能夠喜歡。

相關(guān)文章

最新評(píng)論