亚洲视频二区_亚洲欧洲日本天天堂在线观看_日韩一区二区在线观看_中文字幕不卡一区

公告:魔扣目錄網(wǎng)為廣大站長(zhǎng)提供免費(fèi)收錄網(wǎng)站服務(wù),提交前請(qǐng)做好本站友鏈:【 網(wǎng)站目錄:http://www.430618.com 】, 免友鏈快審服務(wù)(50元/站),

點(diǎn)擊這里在線咨詢客服
新站提交
  • 網(wǎng)站:51998
  • 待審:31
  • 小程序:12
  • 文章:1030137
  • 會(huì)員:747

讓我們了解一些 MySQL 客戶端命令 –

MySQL 會(huì)將用戶發(fā)出的每條 SQL 語句發(fā)送到服務(wù)器以便執(zhí)行。還有一組 mysql 自己解釋的命令。

獲取命令列表

可以通過在提示符下鍵入下面提到的命令來找到這些命令的列表-

mysql> help

登錄后復(fù)制

輸出

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

登錄后復(fù)制

如果使用“–binary-mode”選項(xiàng)調(diào)用 mysql,則假定輸入通過管道傳送到 mysql 或使用 source 命令加載,則除了非交互模式下的字符集和分隔符外,所有 mysql 命令都將被禁用。

每個(gè)命令都有長(zhǎng)格式和短格式。

長(zhǎng)格式命令

長(zhǎng)格式不區(qū)分大小寫,短格式區(qū)分大小寫。長(zhǎng)格式后面可以跟一個(gè)可選的分號(hào)終止符,但短格式后面不應(yīng)跟任何內(nèi)容。

短格式命令

在多個(gè)命令中使用短格式命令-line /* … */ 不支持注釋。簡(jiǎn)寫命令在單行 /* 內(nèi)工作! … */ 版本注釋,/*+ … */ 優(yōu)化器提示注釋也是如此。它們存儲(chǔ)在對(duì)象定義中。

以上就是MySQL 客戶端命令的詳細(xì)內(nèi)容,更多請(qǐng)關(guān)注www.92cms.cn其它相關(guān)文章!

分享到:
標(biāo)簽:MySQL 命令 客戶端
用戶無頭像

網(wǎng)友整理

注冊(cè)時(shí)間:

網(wǎng)站:5 個(gè)   小程序:0 個(gè)  文章:12 篇

  • 51998

    網(wǎng)站

  • 12

    小程序

  • 1030137

    文章

  • 747

    會(huì)員

趕快注冊(cè)賬號(hào),推廣您的網(wǎng)站吧!
最新入駐小程序

數(shù)獨(dú)大挑戰(zhàn)2018-06-03

數(shù)獨(dú)一種數(shù)學(xué)游戲,玩家需要根據(jù)9

答題星2018-06-03

您可以通過答題星輕松地創(chuàng)建試卷

全階人生考試2018-06-03

各種考試題,題庫,初中,高中,大學(xué)四六

運(yùn)動(dòng)步數(shù)有氧達(dá)人2018-06-03

記錄運(yùn)動(dòng)步數(shù),積累氧氣值。還可偷

每日養(yǎng)生app2018-06-03

每日養(yǎng)生,天天健康

體育訓(xùn)練成績(jī)?cè)u(píng)定2018-06-03

通用課目體育訓(xùn)練成績(jī)?cè)u(píng)定