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

来源:互联网 发布:模糊控制算法的优缺点 编辑:程序博客网 时间:2024/06/03 13:38
MySql的统计方法
SELECT count( * ) FROMinformation_schema.tables WHERE TABLE_SCHEMA = '库名'

SqlServer的统计方法
select count(*) as TableCount fromsysobjects where type='u' and status>=0
原创粉丝点击