Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5377
  • 博文数量: 3
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 40
  • 用 户 组: 普通用户
  • 注册时间: 2010-04-12 20:34
文章分类

全部博文(3)

文章存档

2010年(3)

我的朋友
最近访客

分类: 数据库开发技术

2010-04-13 17:16:49

set nocount on
if object_id(N'tempdb.db.#temp') is not null
  drop table #temp
create table #temp (name sysname,count numeric(18))
insert into #temp
select o.name,i.rows
from sysobjects o,sysindexes i 
where o.id=i.id and o.Xtype='U' and i.indid<2
select count(count) 总表数,sum(count) 总记录数 from #temp
select * from #temp
set nocount off
 
阅读(405) | 评论(0) | 转发(0) |
0

上一篇:Oracle sqlplus 格式化数据

下一篇:没有了

给主人留下些什么吧!~~