69pao国产精品视频-久久精品一区二区二三区-精品国产精品亚洲一本大道-99国产综合一区久久

mysql怎么查詢數(shù)據(jù)庫有多少表

mysql怎么查詢數(shù)據(jù)庫有多少表

mysql中查詢一個(gè)數(shù)據(jù)庫中有多少表的方法:

mysql中直接使用下面的命令即可查詢:

select count(*) tables, table_schema from information_schema.tables
  where table_schema = '庫名' group by table_schema;

在information_schema下打開查詢,輸入語句:

 select count(*) tables, table_schema from information_schema.tables  where table_schema = 'test';

下一節(jié):mysql如何關(guān)聯(lián)表

數(shù)據(jù)庫技術(shù)

相關(guān)文章