How the MySQL command that you are in the process of entering can be canceled?


Suppose if we do not want to execute a command that we are entering, then we can use a clear \c option which clears the current input. For example, the use of \c option can be done as follows −

mysql> Select *
    -> from\c

In the example above, when we use \c in a statement, MySQL clears the current input and returns back to the MySQL prompt for accepting other statements.

Updated on: 22-Jun-2020

47 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements