Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2296069
  • 博文数量: 276
  • 博客积分: 5998
  • 博客等级: 大校
  • 技术积分: 5175
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-24 14:43
文章分类

全部博文(276)

文章存档

2014年(25)

2013年(11)

2012年(69)

2011年(167)

2010年(4)

分类: Mysql/postgreSQL

2011-09-09 19:58:39

作用:统计mysql存储过程,视图,触发器数量。
 
select 'routines',count(*) from information_schema.routines \
union \
select 'views',count(*) from information_schema.views \
union \
select 'triggers',count(*) from information_schema.triggers;
阅读(1024) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~