亚洲最大看欧美片,亚洲图揄拍自拍另类图片,欧美精品v国产精品v呦,日本在线精品视频免费

  • 站長(zhǎng)資訊網(wǎng)
    最全最豐富的資訊網(wǎng)站

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

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

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

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

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

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

    語(yǔ)法如下:

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

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

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

    description tbname;

    也可使用簡(jiǎn)寫(xiě):

    desc tbname;

    示例如下:

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

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

    推薦學(xué)習(xí):mysql視頻教程

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