mysql命令查询表的个数

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

语句如下:

 

 

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


其中dbname是要查看的数据库的名字。

 

 

查看表结构:

 

 

[sql] view plain copy
 
  1. description tbname;  

 


也可使用简写:

 

 

[sql] view plain copy
 
    1. desc tbname;  
posted @ 2018-04-27 11:20  仁义礼智信的  阅读(274)  评论(0编辑  收藏  举报