如何在 MySQL 中清除屏幕?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19376104/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to clear screen in MySQL?
提问by Navneet Nandan Jha
I am not able to clear the screen in MySQL command line prompt. My screen is filled with tables, data and queries.I want to clear it up. I searched on the web but couldn't find the satisfactory answer.
我无法在 MySQL 命令行提示符下清除屏幕。我的屏幕上堆满了表格、数据和查询。我想把它清理干净。我在网上搜索,但找不到满意的答案。
采纳答案by tanaydin
Try your terminal apps screen clear. There is no such as command to clean the MySQL shell.
尝试清除您的终端应用程序屏幕。没有这样的命令来清理 MySQL shell。
On a Mac you can go to Edit > Clear Screen
or use the keyboard shortcut: ? + CMD + L
.
在 Mac 上,您可以转到Edit > Clear Screen
或使用键盘快捷键:? + CMD + L
。
回答by exussum
Ctrl+L
Ctrl+L
will do it - its a shell command but works well on the mysql console
会这样做 - 它是一个 shell 命令,但在 mysql 控制台上运行良好
回答by fancyPants
Another possibility is to issue a system command.
另一种可能性是发出系统命令。
mysql> system clear;
for Linux or
对于 Linux 或
mysql> system cls;
for windows (I'd guess. For Linux I'm sure though.).
对于 Windows(我猜。对于 Linux,我确定。)。