在sql server查看所有表的行数:

SELECT a.name,b.rows
FROM sysobjects a WITH (NOLOCK)
JOIN sysindexes b WITH (NOLOCK) ON b.id = a.id
WHERE a.xtype = 'U'
    AND b.indid IN ( 0, 1 )
ORDER BY b.rows DESC;

 

相关文章:

  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2021-09-23
相关资源
相似解决方案