Chinaunix首页 | 论坛 | 博客
  • 博客访问: 268472
  • 博文数量: 103
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 705
  • 用 户 组: 普通用户
  • 注册时间: 2013-05-02 16:15
文章分类

全部博文(103)

文章存档

2014年(8)

2013年(95)

我的朋友

分类: Mysql/postgreSQL

2013-09-03 16:21:10

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