SqlServer/MySql查询某个数据库中表的数量_MySQL
程序员文章站
2022-05-22 16:00:26
...
bitsCN.com
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