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
发布了28 篇原创文章 · 获赞 15 · 访问量 11万+

猜你喜欢

转载自blog.csdn.net/z3h0a5n8g8x9i9a2o3/article/details/9829739