MyCli之多行模式
我们在使用MySQL工具查询的时候,通常是以分号作为查询结束的标志,而在MyCli中是使用回车则表示结束的。
现在介绍如何在MyCli中使用分号表示命令的结束。
方法一:F3
使用F3切换至多行模式,但是这种方式只是临时性的,要想永久设置,需要在MyCli配置文件中配置相应的属性,参考方法二;
方法二:修改MyCli配置文件中的multi_line属性
在Linux下:
sudo vim ~/.myclirc
找到multi_line属性,并设置为True
8 # Multi-line mode allows breaking up the sql statements into multiple lines. If
9 # this is set to True, then the end of the statements must have a semi-colon.
10 # If this is set to False then sql statements can't be split into multiple
11 # lines. End of line (return) is considered as the end of the statement.
12 multi_line = True
保存并退出vim,重新启动MyCli即可。