mysql 中show 命令用法詳述

來源:互聯網
上載者:User

a. show tables或show tables from database_name; -- 顯示當前資料庫中所有表的名稱

b. show databases; -- 顯示mysql中所有資料庫的名稱

c. show columns from table_name from database_name; 或show columns from database_name.table_name; -- 顯示表中列名稱

d. show grants for user_name; -- 顯示一個使用者的許可權,顯示結果類似於grant 命令

e. show index from table_name; -- 顯示表的索引

f. show status; -- 顯示一些系統特定資源的資訊,例如,正在啟動並執行線程數量

g. show variables; -- 顯示系統變數的名稱和值

h. show processlist; -- 顯示系統中正在啟動並執行所有進程,也就是當前正在執行的查詢。大多數使用者可以查看他們自己的進程,但是如果他們擁有process許可權,就可以查看所有人的進程,包括密碼。

i. show table status; -- 顯示當前使用或者指定的database中的每個表的資訊。資訊包括表類型和表的最新更新時間

  • 1
  • 2
  • 下一頁
【內容導航】
第1頁:mysql 中show 命令用法詳述 第2頁:mysql 中show 命令用法詳述

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.