Know any tricks for navigating the MySQL CLI?
For exa开发者_运维百科mple, ^e jumps to the beginning, ^e jumps to the end, and ^w deletes the next word. ^l is clear, ^k deletes, ^j enters, ^b goes backwards...
It seems similar to bash shortcuts but still somewhat different.
Ending a query in \e takes you into your editor, which is handy for modifying long, convoluted queries
SELECT foo FROM bar\e
精彩评论