首页 >数据库 >mysql教程 >SqlServer/MySql查询某个数据库中表的数量_MySQL

SqlServer/MySql查询某个数据库中表的数量_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB原创
2016-06-01 13:31:031265浏览

bitsCN.com

SqlServer/MySql查询某个数据库中表的数量

 

MySql的统计方法

 

SELECT count( * ) FROM information_schema.tables WHERE TABLE_SCHEMA = '库名'

 

SqlServer的统计方法

 

select count(*) as TableCount from sysobjects where type='u' and status>=0


bitsCN.com
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn