欧美亚洲中文,在线国自产视频,欧洲一区在线观看视频,亚洲综合中文字幕在线观看

      1. <dfn id="rfwes"></dfn>
          <object id="rfwes"></object>
        1. 站長資訊網(wǎng)
          最全最豐富的資訊網(wǎng)站

          mysql怎樣查詢表的個數(shù)

          在mysql中,可以利用SELECT語句配合count()函數(shù)查詢數(shù)據(jù)庫中表的個數(shù),語法為“SELECT count() FROM information_schema.TABLES WHERE TABLE_SCHEMA='數(shù)據(jù)庫名';”。

          mysql怎樣查詢表的個數(shù)

          本教程操作環(huán)境:windows10系統(tǒng)、mysql8.0.22版本、Dell G3電腦。

          mysql怎樣查詢表的個數(shù)

          查看數(shù)據(jù)庫表數(shù)量

          語法如下:

          SELECT count(TABLE_NAME) FROM information_schema.TABLES WHERE TABLE_SCHEMA='dbname';

          其中dbname是要查看的數(shù)據(jù)庫的名字。

          查看表結(jié)構(gòu):

          description tbname;

          也可使用簡寫:

          desc tbname;

          示例如下:

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

          mysql怎樣查詢表的個數(shù)

          推薦學習:mysql視頻教程

          贊(0)
          分享到: 更多 (0)
          網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號