日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

mysql no listenter_为什么mysql中用\G表示按列方式显示

發布時間:2023/12/10 数据库 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 mysql no listenter_为什么mysql中用\G表示按列方式显示 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

關于mysql的錯誤 - no query specified

學習了:http://blog.csdn.net/tenfyguo/article/details/7566941

sql語句可以用分號或者\G來結尾;出現這個錯誤一般是分號多寫了;

學習了:http://blog.csdn.net/guoqianqian5812/article/details/51754594

分號也可以換成 \g

在Navicat中是不支持\G和\g標記的;

學習了:https://stackoverflow.com/questions/2277014/why-the-g-in-select-from-table-name-g ?這個說的最明白了,膜拜一下org!

\G表示 go的意思;

In summary...

--vertical?>>?-E?>>?ego?>>?\G?...Tada !

學習了:https://www.2cto.com/database/201212/178075.html 老外說的還針對,

使用-E的話,的確以列方式顯示;但是-E登錄之后沒有辦法按行顯示了;

-E登錄的方法,在開始菜單里面:C:\ProgramData\Microsoft\Windows\Start Menu\Programs\MySQL\MySQL Server 5.7,復制

MySQL 5.7 Command Line Client - Unicode 然后修改其中的屬性,添加-E選項,

"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe" "--defaults-file=C:\ProgramData\MySQL\MySQL Server 5.7\my.ini" "-uroot" "-E" "-p" "--default-character-set=utf8"

mysql登錄之后就有\g是結束符的提示:

Enter password: ************

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 69

Server version: 5.7.3-m13 MySQL Community Server (GPL)

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

在mysql界面內直接輸入help也可以看見:

mysql> help

For information about MySQL products and services, visit:

http://www.mysql.com/

For developer information, including the MySQL Reference Manual, visit:

http://dev.mysql.com/

To buy MySQL Enterprise support, training, or other products, visit:

https://shop.mysql.com/

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.

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.

notee (\t) Don't write into outfile.

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.

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.

nowarning (\w) Don't show warnings after every statement.

resetconnection(\x) Clean session context.

For server side help, type 'help contents'

mysql>

總結

以上是生活随笔為你收集整理的mysql no listenter_为什么mysql中用\G表示按列方式显示的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。