mysql command to query the number of tables

https://blog.csdn.net/xiao__ge/article/details/56671221

The statement is as follows:

 

 

[sql]  view plain copy  
 
  1. SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname';  


where dbname is the name of the database to be viewed.

 

 

View the table structure:

 

 

[sql]  view plain copy  
 
  1. description tbname;  

 


A shorthand can also be used:

 

 

[sql]  view plain copy  
 
    1. desc tbname;  

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325006230&siteId=291194637