MySQL 命令列表

來源:互聯網
上載者:User

MySQL 命令列表

View Code

 1 List of all MySQL commands: 2 Note that all text commands must be first on line and end with ';' 3 ?         (\?) Synonym for `help'. 4 clear     (\c) Clear the current input statement. 5 connect   (\r) Reconnect to the server. Optional arguments are db and host. 6 delimiter (\d) Set statement delimiter. 7 edit      (\e) Edit command with $EDITOR. 8 ego       (\G) Send command to mysql server, display result vertically. 9 exit      (\q) Exit mysql. Same as quit.10 go        (\g) Send command to mysql server.11 help      (\h) Display this help.12 nopager   (\n) Disable pager, print to stdout.13 notee     (\t) Don't write into outfile.14 pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.15 print     (\p) Print current command.16 prompt    (\R) Change your mysql prompt.17 quit      (\q) Quit mysql.18 rehash    (\#) Rebuild completion hash.19 source    (\.) Execute an SQL script file. Takes a file name as an argument.20 status    (\s) Get status information from the server.21 system    (\!) Execute a system shell command.22 tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.23 use       (\u) Use another database. Takes database name as argument.24 charset   (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.25 warnings  (\W) Show warnings after every statement.26 nowarning (\w) Don't show warnings after every statement.

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.