请大家帮,帮,帮,帮个忙!!!

laoer_2002 2003-07-23 09:14:11
怎么查找出数据库里记录数大于1W的表???

先谢谢大家了!
...全文
75 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pengdali 2003-07-23
  • 打赏
  • 举报
回复
select a.name 表名,b.rows 记录数 from sysobjects a join sysindexes b on a.xtype='U' and a.status>0 and a.id=b.id and b.indid<2 where b.rows>1000000...
txlicenhe 2003-07-23
  • 打赏
  • 举报
回复
不知道除了用select count(*) from yourTable一个个找之外还有什么好的办法,关注ing...
loverforever 2003-07-23
  • 打赏
  • 举报
回复
select indentity(int,1,1) id, * into #tem from tablename
select * from @tem where id>10000
drop table @tem
go

22,209

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server 疑难问题
社区管理员
  • 疑难问题社区
  • 尘觉
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧