顯示資料庫中所有表的記錄數

zyip發表於2014-09-23

 

 

use wechat
go

SELECT
sysobjects.Name
, sysindexes.Rows
FROM
sysobjects
INNER JOIN sysindexes
ON sysobjects.id = sysindexes.id
WHERE
type = 'U'
AND sysindexes.IndId < 2

相關文章