- 1. mysql command to query the number of tables
- SELECTcount(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname';
where dbname is the name of the database to be viewed.
2. sql2000 command to query the number of tables
select count(name) from dbo.sysobjects where OBJECTPROPERTY(id, N'IsUserTable') = 1 显示 表数量