Lookup data while in mysql cli edit mode (external editor) (\e)
0
votes
1
answer
341
views
I'm using the mysql cli in edit mode (\e).
> Select * from \e
Goes to vim and I finish typing my command.
Select * from test_table;
Only to realize I've forgotten to
use
the database I need. Is there a way I can preserve this script in edit mode, switch back to the regular mysql mode, run my command, and then come back to edit?
Another example would be: I forget how a column name is spelled and I need to look it up after I've started typing a command in edit mode.
Thanks!
Asked by Steve Tauber
(103 rep)
Aug 30, 2013, 08:15 PM
Last activity: Aug 31, 2013, 04:07 AM
Last activity: Aug 31, 2013, 04:07 AM