mysql sql2000 query the number of tables in the database

    1. 1. mysql command to query the number of tables
  1. 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   显示 表数量

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327101673&siteId=291194637