MySQL快捷鍵及幫助
阿新 • • 發佈:2020-07-15
1.mysql連線後快捷鍵
\? #幫助 \c #終止當前命令 \r #重連資料庫 \d #修改命令結束符 \e #寫入檔案,同時執行多條命令 \G #垂直顯示結果 \q #退出資料庫 \g #命令結束 \h #幫助 \t #取消寫入檔案 \T #將執行過程與結果寫入一個檔案 \p #列印一次命令 \R #修改命令提示符 source (\.) #讀取sql檔案 status (\s) #檢視資料庫狀態 system (\!) #在資料庫裡執行命令列命令 use (\u) #切換資料庫 prompt (\R) Change your mysql prompt. nopager (\n) Disable pager, print to stdout. pager (\P) Set PAGER [to_pager]. Print the query results via PAGER. charset (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets. warnings (\W) Show warnings after every statement. nowarning (\w) Don't show warnings after every statement.
2.help命令
mysql> help
mysql> help contents
mysql> help select
mysql> help create
mysql> help create user
mysql> help status
mysql> help show