Home  >  Article  >  Database  >  What is the use of the 'c' option when writing MySQL statements?

What is the use of the 'c' option when writing MySQL statements?

PHPz
PHPzforward
2023-08-23 17:57:051288browse

What is the use of the c option when writing MySQL statements?

The ‘\c’ option means ‘clear’ and is used to clear the current input. Suppose if we don't want to execute the command being entered, then we can use the clear \c option to clear the current input. For example, the \c option can be used as follows -

mysql> Select *
    -> from\c

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

The above is the detailed content of What is the use of the 'c' option when writing MySQL statements?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete