SqlServer / MySql queries the number of tables in a database

MySql statistical method
SELECT count (*) FROM information_schema.tables WHERE TABLE_SCHEMA = 'library name'

SqlServer statistical method
select count (*) as TableCount from sysobjects where type = 'u' and status> = 0
Published 28 original articles · Like 15 · Visits 110,000+

Guess you like

Origin blog.csdn.net/z3h0a5n8g8x9i9a2o3/article/details/9829739