I really looked hard and long and is there really no way to go up a line to fix a typo without having to type my query all over again?
I am using MySQL console on Windows 7.
If not, what should I be using to learn MySQL?
just press the up arrow on your keyboard once or several times! it also works even if you let your queries span several rows :) this is also good for repeating lines.
Just end the command with a semicolon ";". MySQL will display an error message and let you continue.
Using \e
will allow you to edit the command by opening it up in text editor
edit (\e) Edit command with $EDITOR.
http://dev.mysql.com/doc/refman/5.7/en/mysql-commands.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With