SQL server 查询数据库中所有的表名及行数

SQL server 查询数据库中所有的表名及行数

复制代码
select a.name,
       b.rows
from sysobjects as a
    inner join sysindexes as b
        on a.id = b.id
where (a.type = 'u')
  and (b.indid in (0, 1))  and  b.rows<50 and  b.rows>20
order by a.name, b.rows desc;
相关推荐
IvorySQL8 分钟前
IvorySQL HTAP 实时湖仓接入引擎
数据库·postgresql·开源·htap·ivorysql
忧郁的紫菜11 分钟前
WCF+JSON+实体对象与WebService+DataSet效率大比拼
数据库·oracle·json
Tian_Hang30 分钟前
Eclipse Ditto 的权限策略
java·服务器·前端·网络·ide·ubuntu·eclipse
IvorySQL40 分钟前
PostgreSQL 技术日报|2026-07-05
数据库·postgresql
考虑考虑2 小时前
nginx配置ssl
运维·后端·nginx
我会尽全力 乐观而坚强2 小时前
MySQL库与表的操作
linux·数据库·mysql
着迷不白2 小时前
Linux 磁盘管理完全指南:分区、文件系统、挂载与 LVM 实战
linux·运维·服务器
lilihuigz2 小时前
产品附加选项插件WooCommerce Product Add-Ons:9种字段类型与3种定价模式提升销售 - 易服客工作室
数据库·mysql·wordpress插件·woocommerce扩展·定制选项
山川而川-R2 小时前
LangChain
linux·运维·服务器
QH_ShareHub2 小时前
Linux 根目录结构详解
linux·运维·服务器